Commit ca3db5e134d3a4467ab6916ba271a8d7de75661e

Guillem Jover 2023-03-29T09:35:27

build: Do not enable ASAN for musl CI pipelines musl-libc does not currently support ASAN, so enabling it makes configure fail to detect libmd as it cannot link to it anymore.

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e701dda..9e117f2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,10 @@
 .unit-tests:
   script:
+    - ./autogen && ./configure
+    - make check
+
+.unit-tests-asan:
+  script:
     - ./autogen && ./configure --enable-sanitize
     - make check
 
@@ -25,7 +30,7 @@
               bsd-compat-headers linux-headers libmd-dev musl-dev gcovr
 
 unit-tests:debian:
-  extends: [.debian, .unit-tests]
+  extends: [.debian, .unit-tests-asan]
 
 coverage:debian:
   extends: [.debian, .coverage]