]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run unit tests on OpenBSD in GitLab CI
authorMichal Nowak <mnowak@isc.org>
Mon, 19 Oct 2020 05:47:57 +0000 (07:47 +0200)
committerMichal Nowak <mnowak@isc.org>
Wed, 21 Oct 2020 11:06:52 +0000 (13:06 +0200)
Unlike other maintained BIND branches, the "main" BIND branch does not
require Kyua for running unit tests, which has been an obstacle for
adding an OpenBSD unit test job to GitLab CI.  Experiments show that a
complete BIND unit test suite completes in a few minutes on OpenBSD and
that unit tests are not as severely affected by OpenBSD performance
issues as system tests are.  Add a GitLab CI job which runs unit tests
on OpenBSD to every pipeline.

.gitlab-ci.yml

index df826b291d49cf349d175169e61d462abef2f4b3..7d507538cbe675c8a812c94c1de13c11af3e5a35 100644 (file)
@@ -1159,6 +1159,15 @@ system:clang:openbsd:amd64:
     - schedules
     - web
 
+unit:clang:openbsd:amd64:
+  <<: *openbsd_amd64_image
+  <<: *unit_test_job
+  variables:
+    USER: gitlab-runner
+  needs:
+    - job: clang:openbsd:amd64
+      artifacts: true
+
 # Jobs for Visual Studio 2017 builds on Windows (amd64)
 
 msvc:windows:amd64: