libbsd: Branch 'main'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jan 29 14:06:18 UTC 2022


 .gitlab-ci.yml |   40 +++++++++++++++++++++++++++++-----------
 1 file changed, 29 insertions(+), 11 deletions(-)

New commits:
commit abb1a6b1a74cb6ae8cf4ef2a27fea34c2cd0e4f5
Author: Duncan Overbruck <mail at duncano.de>
Date:   Mon Jan 24 15:11:38 2022 +0100

    build: Add alpine to CI for tests with musl libc
    
    Closes: !18
    Signed-off-by: Guillem Jover <guillem at hadrons.org>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ca88de2..e9d6b80 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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]


More information about the libbsd mailing list