Commit 9cc6db0cf8ad97b33f1499df001f0609a3003a77

Guillem Jover 2021-02-28T18:57:00

build: Improve coverage report Exclude test suite files from the coverage which incorrectly increase the coverage percent. Build with no-optimizations and debugging symbols.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20364b4..6ff42e2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,5 +15,5 @@ coverage:
   stage: test
   script:
     - ./autogen && ./configure --disable-static
-    - make check CFLAGS="--coverage" LDFLAGS="--coverage"
-    - gcovr -s
+    - make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb"
+    - gcovr -s -e test/