summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-12-16 10:13:01 -0500
committerBen Gamari <ben@smart-cactus.org>2018-12-17 12:44:49 -0500
commit850b136bdf3f04536580257feb9ce22677ece9d4 (patch)
treeadb1f6f7bc74240ba6395b07b49a5bba85901a93
parent8eaf733f5bfe6c8c2db31542abe1f8a7c45b59a5 (diff)
downloadhaskell-850b136bdf3f04536580257feb9ce22677ece9d4.tar.gz
gitlab-ci: Introduce nightly builds
These run slowtest and their artifacts are preserved for two years.
-rw-r--r--.gitlab-ci.yml34
1 files changed, 33 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5fb2ec7f4..bcbcc30aeb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -62,6 +62,8 @@ validate-x86_64-linux-deb8-hadrian:
.validate:
stage: build
+ variables:
+ TEST_TYPE: test
script:
- make clean || true
- ./boot
@@ -74,7 +76,7 @@ validate-x86_64-linux-deb8-hadrian:
mv ghc-*.tar.xz ghc.tar.xz
- |
THREADS=`mk/detect-cpu-count.sh`
- make test THREADS=$THREADS JUNIT_FILE=../../junit.xml
+ make $TEST_TYPE THREADS=$THREADS JUNIT_FILE=../../junit.xml
artifacts:
reports:
junit: junit.xml
@@ -147,6 +149,16 @@ validate-aarch64-linux-deb9:
tags:
- aarch64-linux
+nightly-aarch64-linux-deb9:
+ extends: validate-aarch64-linux-deb9
+ artifacts:
+ expire_in: 2 year
+ variables:
+ TEST_TYPE: slowtest
+ only:
+ variables:
+ - $NIGHTLY
+
validate-x86_64-linux-deb9:
extends: .validate-linux
image: ghcci/x86_64-linux-deb9:0.2
@@ -156,6 +168,16 @@ validate-x86_64-linux-deb9:
cache:
key: linux-x86_64-deb9
+nightly-x86_64-linux-deb9:
+ extends: validate-x86_64-linux-deb9
+ artifacts:
+ expire_in: 2 year
+ variables:
+ TEST_TYPE: slowtest
+ only:
+ variables:
+ - $NIGHTLY
+
validate-x86_64-linux-deb9-llvm:
extends: .validate-linux
allow_failure: true
@@ -192,6 +214,16 @@ validate-x86_64-linux-deb9-integer-simple:
cache:
key: linux-x86_64-deb9
+nightly-x86_64-linux-deb9-integer-simple:
+ extends: validate-x86_64-linux-deb9-integer-simple
+ artifacts:
+ expire_in: 2 year
+ variables:
+ TEST_TYPE: slowtest
+ only:
+ variables:
+ - $NIGHTLY
+
validate-x86_64-linux-deb9-unreg:
extends: .validate-linux
variables: