summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2022-10-17 12:47:06 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2022-10-17 18:28:21 +0200
commit6f22555807b0b4e81adcc84f31f57fd97f42e215 (patch)
tree3840775533934aecee9f235a07950ec359e0f93d
parent1a0604bd0974e5ab1f5663dea158b7040c200bc9 (diff)
downloadlibnice-6f22555807b0b4e81adcc84f31f57fd97f42e215.tar.gz
ci: Add code coverage to MRs
-rw-r--r--.gitlab-ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b13e81..e82a737 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -66,7 +66,7 @@ build:
script:
## && true to make gitlab-ci happy
- source scl_source enable rh-python36 && true
- - meson --werror --warnlevel 2 -Dgtk_doc=enabled --prefix=$PREFIX build/
+ - meson --werror --warnlevel 2 -Dgtk_doc=enabled --prefix=$PREFIX -Db_coverage=true build/
- ninja -C build/
artifacts:
paths:
@@ -239,6 +239,8 @@ test:
- source scl_source enable rh-python36 && true
- ninja -C build/
- meson test -C build/ --setup debug
+ - ninja -C build coverage
+ coverage: '/lines......: \d+\.\d+% /'
artifacts:
reports:
junit: build/meson-logs/testlog-*.junit.xml