[tracker/wip/carlosg/test] ci: Exclude generated boilerplate in coverage checks




commit 37ea2085a531b598c1d92cff98a9e7fd521d98c5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Aug 29 16:23:43 2021 +0200

    ci: Exclude generated boilerplate in coverage checks
    
    We don't care as much about the specific lines of glib-mkenums or
    gresource generated files that are being tested. Get these out of
    coverage output.

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d3cc1229d..8bb04fcda 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -333,7 +333,7 @@ coverage-analysis:
     - ninja
     - env LANG=C.UTF-8 LC_ALL=C.UTF-8 dbus-run-session meson test --print-errorlogs ${MESON_TEST_EXTRA_ARGS}
     - mkdir -p coveragereport
-    - gcovr --html-details --print-summary --root=.. --exclude=../docs/reference --exclude=../tests 
--exclude=../utils --exclude=../examples --output coveragereport/index.html
+    - gcovr --html-details --print-summary --root=.. --exclude=../docs/reference --exclude=../tests 
--exclude=../utils --exclude=../examples --exclude=.*_gresources\.c --exclude=.*enum-types\.c --output 
coveragereport/index.html
   coverage: '/^lines: (\d+\.\d+\%)/'
   artifacts:
     when: always


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