[tracker-miners/wip/carlosg/coverage] ci: Add coverage stage
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/coverage] ci: Add coverage stage
- Date: Tue, 29 Sep 2020 22:17:43 +0000 (UTC)
commit c9c6e46cb9e0f025794ee60e4a187c5abf968103
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Sep 29 23:18:26 2020 +0200
ci: Add coverage stage
Like we have in the Tracker repo. Although the numbers are less
spectacular.
.gitlab-ci.yml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c133b1549..657980749 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,6 +63,24 @@ 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 '.gitlab-ci/checkout-tracker.sh'
+ - su tracker -c 'mkdir coverage-build'
+ - su tracker -c 'cd coverage-build; meson .. --prefix=/usr -Dtracker_core=subproject -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 --html-details --print-summary --root=..
--exclude=../docs/reference --exclude=../tests --exclude=../utils --exclude=../examples --output
coveragereport/index.html'
+ coverage: '/^lines: (\d+\.\d+\%)/'
+ artifacts:
+ when: always
+ paths:
+ - coverage-build/coveragereport
+
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]