gitlab-ci: Introduce nightly builds
authorBen Gamari <ben@smart-cactus.org>
Sun, 16 Dec 2018 15:13:01 +0000 (10:13 -0500)
committerBen Gamari <ben@smart-cactus.org>
Mon, 17 Dec 2018 17:44:49 +0000 (12:44 -0500)
These run slowtest and their artifacts are preserved for two years.

.gitlab-ci.yml

index e5fb2ec..bcbcc30 100644 (file)
@@ -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: