Commit 8308181a0018a15944df18303316c30b6d1dbf4a

Guillem Jover 2021-02-20T23:41:51

build: Add GitLab CI support

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..36ea972
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,19 @@
+image: debian:buster
+
+before_script:
+  - apt-get update -qq
+  - apt-get install -qq -y --no-install-recommends
+    git gcc make autoconf automake libtool gcovr
+
+unit-tests:
+  stage: test
+  script:
+    - ./autogen && ./configure
+    - make check
+
+coverage:
+  stage: test
+  script:
+    - ./autogen && ./configure --disable-static
+    - make check CFLAGS="--coverage" LDFLAGS="--coverage"
+    - gcovr -s