[nautilus/csoriano-master-patch-91142] CI: Add coverage report



commit de8b75041666731b4febeb4e4e3c554906ee9f78
Author: Carlos Soriano <csoriano1618 gmail com>
Date:   Mon Aug 13 21:40:00 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..e64dfe584 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]