build: Improve coverage report Exclude test suite files from the coverage which incorrectly increase the coverage percent. Build with no-optimizations and debugging symbols.
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/