From a1166cc365ba56e4f70def26a4b9775d8a0765f5 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 13 Aug 2018 21:53:47 +0000 Subject: CI: Add coverage report --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eecb3da6b..eaffd4068 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,9 +81,27 @@ fedora:rawhide: image: fedora:rawhide stage: cross_environment before_script: - - dnf install -y 'dnf-command(builddep)' redhat-rpm-config libseccomp-devel + - dnf install -y 'dnf-command(builddep)' redhat-rpm-config libseccomp-devel gcovr - dnf builddep -y nautilus - <<: *distro_test + script: + - meson _build . -Db_coverage=true + - cd _build + - ninja test + - gcovr --root=. + --exclude=src/ + --exclude=../data/ + --exclude=../eel/check-program.c + --exclude=../eel/eel-debug.c + --exclude=../eel/eel-lib-self-check-functions.c + --exclude=../eel/eel-self-checks.c + --exclude=../src/animation/ + --exclude=../src/gtk/ + --exclude=../src/nautilus-lib-self-check-functions.c + --exclude=../src/nautilus-self-check-functions.c + --exclude=../subprojects/libgd/ + --exclude=../test/ + coverage: '/^TOTAL.*\s+(\d+\%)$/' + only: - schedules - web -- cgit v1.2.1