]> 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:43:39 +0000 (09:43 +0000)
committerMichal Nowak <mnowak@isc.org>
Thu, 9 Jan 2020 09:43:39 +0000 (09:43 +0000)
Fixes #1546.

(cherry picked from commit 640dd566e9c0ef377b1384cabd5df48d72f9f93d)

.gitlab-ci.yml

index ee941d0d81c68b2c18fab5977f4541a192526192..8d4da6e53480c5aeb79e53d0635fcab69f869c41 100644 (file)
@@ -189,6 +189,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
@@ -652,6 +653,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: "-Wall -Wextra -O3 -g"
+    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: