chore: use native code generation again

This commit is contained in:
Gregor Kleen 2020-08-17 10:55:19 +02:00
parent 692eb4d43c
commit 8f7c438fd7
3 changed files with 4 additions and 133 deletions

View File

@ -42,9 +42,6 @@ npm install:
- install -v -m 0700 -d ~/.ssh
- install -v -T -m 0644 ${SSH_KNOWN_HOSTS} ~/.ssh/known_hosts
- install -v -T -m 0400 ${SSH_DEPLOY_KEY} ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
after_script:
- zip -qr node_modules.zip node_modules
- du -hs node_modules node_modules.zip
artifacts:
paths:
- node_modules/
@ -93,11 +90,8 @@ yesod:build:dev:
before_script: &haskell
- rm -rvf /etc/apt/sources.list /etc/apt/sources.list.d
- install -v -T -m 0644 ${APT_SOURCES_LIST} /etc/apt/sources.list
- apt-key add ${LLVM_APT_KEY}
- apt update -y
- apt install -y --no-install-recommends locales-all openssh-client llvm-9
- ln -vsf llc-9 /usr/bin/llc
- ln -vsf opt-9 /usr/bin/opt
- apt install -y --no-install-recommends locales-all openssh-client
- install -v -m 0700 -d ~/.ssh
- install -v -T -m 0644 ${SSH_KNOWN_HOSTS} ~/.ssh/known_hosts
- install -v -T -m 0400 ${SSH_DEPLOY_KEY} ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
@ -118,7 +112,7 @@ yesod:build:dev:
yesod:build:
stage: yesod:build
script:
- stack build --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic
- stack build --test --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic
needs:
- frontend:build
before_script: *haskell
@ -195,52 +189,12 @@ yesod:test:dev:
retry: 2
interruptible: true
hlint:
stage: lint
script:
- stack test --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic uniworx:test:hlint
needs:
- frontend:build
before_script: *haskell
dependencies:
- frontend:build
only:
variables:
- $CI_COMMIT_REF_NAME =~ /^v[0-9].*/
retry: 2
interruptible: true
resource_group: ram
yesod:test:
services:
- name: postgres:10.10
alias: postgres
stage: test
script:
- stack test --coverage --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --skip hlint
needs:
- frontend:build
before_script: *haskell
dependencies:
- frontend:build
only:
variables:
- $CI_COMMIT_REF_NAME =~ /^v[0-9].*/
retry: 2
interruptible: true
resource_group: ram
deploy:uniworx3:
stage: deploy
script:
- ssh -i ~/.ssh/id root@uniworx3.ifi.lmu.de <bin/uniworx
needs:
- yesod:build
- yesod:test # For sanity
- hlint # For sanity
- frontend:test # For sanity
before_script:
- rm -rvf /etc/apt/sources.list /etc/apt/sources.list.d

View File

@ -241,7 +241,7 @@ when:
- -fprof-auto
else:
ghc-options:
- -O -fllvm
- -O
# The library contains all of our application code. The executable
# defined below is just a thin wrapper.

View File

@ -36,91 +36,8 @@ extra-deps:
- colonnade
- git: git@gitlab2.rz.ifi.lmu.de:uni2work/minio-hs.git
commit: 42103ab247057c04c8ce7a83d9d4c160713a3df1
# # - colonnade-1.2.0.2
# - hsass-0.8.0
# - hlibsass-0.1.8.1
# - tz-0.1.3.3
# # - zip-stream-0.2.0.1
# - uuid-crypto-1.4.0.0
# - filepath-crypto-0.1.0.0
# - cryptoids-0.5.1.0
# - cryptoids-types-1.0.0
# - cryptoids-class-0.0.0
# - system-locale-0.3.0.0
# - hlint-test-0.1.0.0
# - pkcs7-1.0.0.1
# - systemd-2.2.0
# # - directory-1.3.4.0
# # - HaXml-1.25.5
# # - persistent-2.10.4
# # - persistent-postgresql-2.10.1
# # - persistent-template-2.7.3
# # - esqueleto-3.2.3
# - sandi-0.5
# - storable-endian-0.2.6
# # - universe-1.2
# # - universe-base-1.1.1
# # - universe-reverse-instances-1.1
# # - unliftio-pool-0.2.1.0
# # - universe-instances-extended-1.1.1
# # - universe-some-1.2
# # - some-1.0.0.3
# # - network-bsd-2.8.1.0
# # - persistent-qq-2.9.1
# # - process-1.6.5.1
# # - generic-lens-1.2.0.0
# - prometheus-metrics-ghc-1.0.1
# - wai-middleware-prometheus-1.0.0
# # - extended-reals-0.2.3.0
# - pandoc-2.9.2
# - doclayout-0.3
# - doctemplates-0.8.1
# # - emojis-0.1
# # - hslua-module-system-0.2.1
# # - ipynb-0.1
# # - jira-wiki-markup-1.0.0
# # - HsYAML-0.2.1.0
# # - cmark-gfm-0.2.1
# # - haddock-library-1.8.0
# # - pandoc-types-1.20
# # - skylighting-0.8.3.2
# # - skylighting-core-0.8.3.2
# # - texmath-0.12.0.1
# - binary-instances-1
# - acid-state-0.16.0
# - unidecode-0.1.0.4
# - token-bucket-0.1.0.1
# - normaldistribution-1.1.0.3
# - unordered-containers-0.2.11.0
# - base64-bytestring-1.1.0.0
- generic-lens-1.2.0.0
- generic-lens-1.2.0.0@sha256:b19e7970c93743a46bc3702331512a96d163de4356472f2d51a2945887aefe8c,6524 # manual downgrade; won't compile with >=2.0.0.0
- acid-state-0.16.0.1@sha256:d43f6ee0b23338758156c500290c4405d769abefeb98e9bc112780dae09ece6f,6207
- bytebuild-0.3.6.0@sha256:aec785c906db5c7ec730754683196eb99a0d48e0deff7d4034c7b58307040b85,2982