]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Add a coverage regex to the CI job
authorGuillem Jover <guillem@hadrons.org>
Fri, 27 Oct 2023 22:47:26 +0000 (00:47 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 27 Oct 2023 22:47:26 +0000 (00:47 +0200)
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.

.gitlab-ci.yml

index 9e117f23945145824c736f3b782f5c5ec06d8ae3..737297c78a235e07d2e07ba1263b06731438611a 100644 (file)
@@ -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