summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano1618@gmail.com>2018-08-13 21:53:47 +0000
committerCarlos Soriano <csoriano1618@gmail.com>2018-08-13 21:53:47 +0000
commita1166cc365ba56e4f70def26a4b9775d8a0765f5 (patch)
treefd65cdc14b45d0ca90eea61f1f5e0f8ba5c50549 /.gitlab-ci.yml
parentf41484334868c8845b6088fef6281e41b517f69d (diff)
downloadnautilus-a1166cc365ba56e4f70def26a4b9775d8a0765f5.tar.gz
CI: Add coverage report
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files 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