[tracker/wip/carlosg/coverage] ci: Add coverage analysis
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverage] ci: Add coverage analysis
- Date: Tue, 7 Jul 2020 10:00:02 +0000 (UTC)
commit 52caca9a46a224d1ce2a77c7735c19fd623854e7
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 7 11:43:18 2020 +0200
ci: Add coverage analysis
.gitlab-ci.yml | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 960cf1743..8f3634c38 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,6 +61,19 @@ test-ubuntu-rolling:
image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/ubuntu:rolling
<<: *test
+coverage-analysis:
+ stage: analysis
+ image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
+ allow_failure: true
+ script:
+ - dnf install -y gcovr
+ - su tracker -c 'mkdir coverage-build'
+ - su tracker -c 'cd coverage-build; meson .. -Db_lto=true -Db_coverage=true'
+ - su tracker -c 'cd coverage-build; ninja'
+ - su tracker -c 'cd coverage-build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 dbus-run-session eatmydata meson
test --print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
+ - su tracker -c 'cd coverage-build; gcovr --root=.. --exclude=../tests --exclude=../utils
--exclude=../examples'
+ coverage: '/^TOTAL.*\s+(\d+\%)$/'
+
coverity:
stage: analysis
image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]