]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Split system and unit tests into separate CI jobs
authorOndřej Surý <ondrej@sury.org>
Thu, 8 Mar 2018 14:29:07 +0000 (10:29 -0400)
committerOndřej Surý <ondrej@sury.org>
Fri, 9 Mar 2018 14:11:27 +0000 (10:11 -0400)
.gitlab-ci.yml

index 2dc7ecd4acab679e8a0fbbb59612486f987d8e9e..f10063da454f6d15e3b0461f68c022b1c6fbf88f 100644 (file)
@@ -98,12 +98,21 @@ stages:
     paths:
     - .ccache/
 
-.test: &test_job
+.system_test: &system_test_job
   stage: test
   before_script:
     - bash -x bin/tests/system/ifconfig.sh up
   script:
-    - make -j8 -k check V=1
+    - cd bin/tests && make -j8 -k test V=1
+  artifacts:
+    untracked: true
+    expire_in: '1 week'
+    when: on_failure
+
+.unit_test: &unit_test_job
+  stage: test
+  script:
+    - make unit
   artifacts:
     untracked: true
     expire_in: '1 week'
@@ -155,14 +164,26 @@ build:debian:sid:i386:
   <<: *debian_sid_i386_image
   <<: *build_job
 
-test:debian:sid:amd64:
+unittest:debian:sid:amd64:
+  <<: *debian_sid_amd64_image
+  <<: *unit_test_job
+  dependencies:
+    - build:debian:sid:amd64
+    
+unittest:debian:sid:i386:
+  <<: *debian_sid_i386_image
+  <<: *unit_test_job
+  dependencies:
+    - build:debian:sid:i386
+
+systemtest:debian:sid:amd64:
   <<: *debian_sid_amd64_image
-  <<: *test_job
+  <<: *system_test_job
   dependencies:
     - build:debian:sid:amd64
     
-test:debian:sid:i386:
+systemtest:debian:sid:i386:
   <<: *debian_sid_i386_image
-  <<: *test_job
+  <<: *system_test_job
   dependencies:
     - build:debian:sid:i386