]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add out-of-tree build to the CI
authorMichal Nowak <mnowak@isc.org>
Thu, 9 Jan 2020 09:42:36 +0000 (09:42 +0000)
committerMichal Nowak <mnowak@isc.org>
Thu, 9 Jan 2020 09:42:36 +0000 (09:42 +0000)
Fixes #1546.

(cherry picked from commit 640dd566e9c0ef377b1384cabd5df48d72f9f93d)

.gitlab-ci.yml

index 0956bb5a827ad14f222995c159306e18e598ccf3..d0351c6dbe355caed78e56f1cb4715f542a4a4f3 100644 (file)
@@ -188,6 +188,7 @@ stages:
   stage: build
   before_script:
     - test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
+    - test -n "${OOT_BUILD_WORKSPACE}" && mkdir "${OOT_BUILD_WORKSPACE}" && cd "${OOT_BUILD_WORKSPACE}"
   script:
     - *configure
     - ${MAKE} -j${BUILD_PARALLEL_JOBS:-1} -k all V=1
@@ -654,6 +655,19 @@ cppcheck:gcc:sid:amd64:
     - gcc:sid:amd64
   needs: ["gcc:sid:amd64"]
 
+# Job for out-of-tree GCC build on Debian Sid (amd64)
+
+oot:sid:amd64:
+  variables:
+    CC: gcc
+    CFLAGS: "${CFLAGS_COMMON} -O3"
+    CONFIGURE: ../configure
+    EXTRA_CONFIGURE: "--enable-dnstap --with-libidn2"
+    RUN_MAKE_INSTALL: 1
+    OOT_BUILD_WORKSPACE: workspace
+  <<: *debian_sid_amd64_image
+  <<: *build_job
+
 # Jobs for tarball GCC builds on Debian Sid (amd64)
 
 tarball:sid:amd64: