]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Add alpine to CI for tests with musl libc
authorDuncan Overbruck <mail@duncano.de>
Mon, 24 Jan 2022 14:11:38 +0000 (15:11 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 29 Jan 2022 14:03:08 +0000 (15:03 +0100)
Closes: !18
Signed-off-by: Guillem Jover <guillem@hadrons.org>
.gitlab-ci.yml

index ca88de2587b4ba3a5493523f9c7d8f7e91a403b6..e9d6b805582ef42b3554e38fb93610be8ac52f94 100644 (file)
@@ -1,19 +1,37 @@
-image: debian:buster
-
-before_script:
-  - apt-get update -qq
-  - apt-get install -qq -y --no-install-recommends
-            git gcc make autoconf automake libtool libmd-dev gcovr
-
-unit-tests:
-  stage: test
+.unit-tests:
   script:
     - ./autogen && ./configure
     - make check
 
-coverage:
-  stage: test
+.coverage:
   script:
     - ./autogen && ./configure --disable-static
     - make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb"
     - gcovr -s -e test/
+
+.debian:
+  image: debian:buster
+  stage: test
+  before_script:
+    - apt-get update -qq
+    - apt-get install -qq -y --no-install-recommends
+              git gcc make autoconf automake libtool libmd-dev gcovr
+
+.alpine:
+  image: alpine:latest
+  stage: test
+  before_script:
+    - apk add --no-cache git gcc make autoconf automake libtool
+              bsd-compat-headers linux-headers libmd-dev musl-dev gcovr
+
+unit-tests:debian:
+  extends: [.debian, .unit-tests]
+
+coverage:debian:
+  extends: [.debian, .coverage]
+
+unit-tests:alpine:
+  extends: [.alpine, .unit-tests]
+
+coverage:alpine:
+  extends: [.alpine, .coverage]