]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add FreeBSD 11 GitLab CI Runner
authorOndřej Surý <ondrej@sury.org>
Mon, 9 Apr 2018 12:12:11 +0000 (14:12 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 9 Apr 2018 14:32:41 +0000 (16:32 +0200)
.gitlab-ci.yml

index 08a189ddc3f9d96302a2d2b9cad968d719746faa..0046c1e094c868bba3078b06301b30ab4463fa9f 100644 (file)
@@ -4,6 +4,8 @@ variables:
   DOCKER_DRIVER: overlay2
   CI_REGISTRY_IMAGE: oerdnj/bind9
   CCACHE_DIR: "/ccache"
+  MAKE: make
+  SUDO: ""
 
 stages:
   - precheck
@@ -89,7 +91,7 @@ stages:
     - ./autogen.sh
   script:
     - ./configure --enable-developer --with-libtool --disable-static --with-atf=/usr/local --with-libidn2
-    - make -j${PARALLEL_JOBS_BUILD:-1} -k all V=1
+    - ${MAKE} -j${PARALLEL_JOBS_BUILD:-1} -k all V=1
   artifacts:
     expire_in: '1 hour'
     untracked: true
@@ -98,9 +100,9 @@ stages:
   stage: test
   before_script:
     - rm -rf .ccache
-    - bash -x bin/tests/system/ifconfig.sh up
+    - ${SUDO} bash -x bin/tests/system/ifconfig.sh up
   script:
-    - cd bin/tests && make -j${TEST_PARALLEL_JOBS:-1} -k test V=1
+    - cd bin/tests && ${MAKE} -j${TEST_PARALLEL_JOBS:-1} -k test V=1
   artifacts:
     untracked: true
     expire_in: '1 week'
@@ -109,9 +111,9 @@ stages:
 .unit_test: &unit_test_job
   stage: test
   before_script:
-    - export KYUA_RESULT="$CI_PROJECT_DIR/kyua.results"
+    - export KYUA_RESULT="$(pwd)/kyua.results"
   script:
-    - make unit
+    - ${MAKE} unit
   after_script:
     - kyua report-html --force --results-file kyua.results --results-filter "" --output kyua_html
   artifacts:
@@ -192,3 +194,29 @@ systemtest:debian:sid:i386:
   <<: *system_test_job
   dependencies:
     - build:debian:sid:i386
+
+# FreeBSD 11
+
+.freebsd11-amd64: &freebsd11_amd64_image
+  variables:
+    MAKE: gmake
+    SUDO: sudo
+  tags:
+    - freebsd11
+    - amd64
+
+build:freebsd11:amd64:
+  <<: *freebsd11_amd64_image
+  <<: *build_job
+
+unittest:freebsd11:amd64:
+  <<: *freebsd11_amd64_image
+  <<: *unit_test_job
+  dependencies:
+    - build:freebsd11:amd64
+
+systemtest:debian:sid:amd64:
+  <<: *freebsd11_amd64_image
+  <<: *system_test_job
+  dependencies:
+    - build:freebsd11:amd64