[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:42:37 +0000 (UTC)
commit 5b6c8e8c4739b855db3e5a193df6731bed77c422
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..322eab995 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 -p coverage-build/coveragereport'
+ - 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=../subprojects --exclude=../tests --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]