[nautilus] CI: Add coverage report



commit a1166cc365ba56e4f70def26a4b9775d8a0765f5
Author: Carlos Soriano <csoriano1618 gmail com>
Date:   Mon Aug 13 21:53:47 2018 +0000

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]