Commit 0813f3786f4968e4fca374fd7b74fb97a0f51f21

Guillem Jover 2023-10-28T00:52:31

build: Check out-of-tree builds in CI Make sure the out-of-tree builds do not regress.

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 737297c..72b7625 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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]