Commit 3f5ca0aae4ce26d0e2bb2a9f908ccdab84638574

Guillem Jover 2023-10-28T00:47:26

build: Add a coverage regex to the CI job This is needed so that gitlab can know where to extract the coverage percentage from in the output, to be able to track and report it.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9e117f2..737297c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,7 @@
     - ./autogen && ./configure --disable-static
     - make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb"
     - gcovr -s -e test/
+  coverage: /^TOTAL.*\s+(\d+\%)$/
 
 .debian:
   image: debian:latest