]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add OpenBSD to GitLab CI
authorMichał Kępień <michal@isc.org>
Tue, 15 Oct 2019 14:38:04 +0000 (16:38 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 15 Oct 2019 14:38:24 +0000 (16:38 +0200)
Ensure BIND can be tested on OpenBSD in GitLab CI to more quickly catch
build and test errors on that operating system.

Some notes:

  - While GCC is packaged for OpenBSD, only old versions (4.2.1, 4.9.4)
    are readily available and none of them is the default system
    compiler, so we are only doing Clang builds in GitLab CI.

  - Unit tests are currently not run on OpenBSD because it ships with an
    old version of kyua which does not handle skipped tests properly.
    These jobs will be added when we move away from using kyua in the
    future as the test code itself works fine.

  - All OpenBSD jobs are run inside QEMU virtual machines, using GitLab
    Runner Custom executor.

(cherry picked from commit 07d2fcb5441960c508f5f36662f7c3acc5b98be7)

.gitlab-ci.yml

index 72faefa9440d64656db145c3801797160eb0f951..a0277aee41d88073eed504e2dbe5ded87d19303c 100644 (file)
@@ -28,7 +28,7 @@ stages:
 
 ### Runner Tag Templates
 
-# Note: FreeBSD runners extract the FreeBSD version to use from job name
+# Note: BSD runners extract the operating system version to use from job name
 
 .freebsd-amd64: &freebsd_amd64
   tags:
@@ -45,6 +45,11 @@ stages:
     - linux
     - i386
 
+.openbsd-amd64: &openbsd_amd64
+  tags:
+    - openbsd
+    - amd64
+
 ### Docker Image Templates
 
 # Alpine Linux
@@ -718,6 +723,21 @@ unit:clang:freebsd12.0:amd64:
     - clang:freebsd12.0:amd64
   needs: ["clang:freebsd12.0:amd64"]
 
+# Jobs for Clang builds on OpenBSD 6.5 (amd64)
+
+clang:openbsd6.5:amd64:
+  variables:
+    CC: clang
+  <<: *openbsd_amd64
+  <<: *build_job
+
+system:clang:openbsd6.5:amd64:
+  <<: *openbsd_amd64
+  <<: *system_test_job
+  dependencies:
+    - clang:openbsd6.5:amd64
+  needs: ["clang:openbsd6.5:amd64"]
+
 # Jobs with libtool disabled
 
 nolibtool:sid:amd64: