Commit d18fcba7 authored by Guido Gunther's avatar Guido Gunther
Browse files

gitlab-ci: Use gcovr instead of lcov

This creates a bit nicer reports but more importantly supports
a gcovr.cfg in _build/ so we can exclude autogenerated files
in the future.

This needs some hackery due to

but since this only affects this project and not e.g. downstreams
it should be o.k. for the time being.
Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent c8dea5f2
......@@ -7,7 +7,7 @@ stages:
- package
DEPS: build-essential git wget lcov
DEPS: build-essential git wget gcovr
EXP_DEPS: libhandy-1-dev/experimental libhandy-1-0/experimental gir1.2-handy-1/experimental
XVFB_RUN: xvfb-run -a -s -noreset
......@@ -59,6 +59,9 @@ before_script:
- eatmydata apt-get -y install $EXP_DEPS
- '[ "$WANT_BUILD_DEPS" != "true" ] || eatmydata apt-get -y build-dep .'
- eatmydata apt-get -y install $DEPS
# Forecully drop lcov so gcovr is used
- eatmydata dpkg --force-depends --remove lcov
- ulimit -c unlimited
.tags: &tags
......@@ -117,7 +120,7 @@ unit-test:native-debian-bullseye:
- build:native-debian-bullseye
<<: *bullseye_vars
<<: *test_step
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
coverage: '/^lines:\s+([\d.]+\%)\s+/'
when: always
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment