]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Check out-of-tree builds in CI
authorGuillem Jover <guillem@hadrons.org>
Fri, 27 Oct 2023 22:52:31 +0000 (00:52 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sun, 7 Jan 2024 19:21:08 +0000 (20:21 +0100)
Make sure the out-of-tree builds do not regress.

.gitlab-ci.yml

index 737297c78a235e07d2e07ba1263b06731438611a..72b7625c888df04b5e713a9ab19e1d4b1422a8e4 100644 (file)
@@ -1,3 +1,11 @@
+.vpath-tests:
+  script:
+    - ./autogen
+    - mkdir -p build-tree
+    - cd build-tree
+    - ../configure
+    - make check
+
 .unit-tests:
   script:
     - ./autogen && ./configure
@@ -30,6 +38,9 @@
     - apk add --no-cache git gcc make autoconf automake libtool
               bsd-compat-headers linux-headers libmd-dev musl-dev gcovr
 
+vpath-tests:debian:
+  extends: [.debian, .vpath-tests]
+
 unit-tests:debian:
   extends: [.debian, .unit-tests-asan]