summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2020-05-06 15:27:41 +0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2020-05-07 22:08:44 +0000
commit5c4938e47923333001508d39e5cd96bb2cdff186 (patch)
tree440acb7f5c9d17f17f3079fcb9b34710a96ea2dd /.gitlab-ci
parent322b51cded630fb36f1759ebb608fe4985bd228b (diff)
downloadmutter-5c4938e47923333001508d39e5cd96bb2cdff186.tar.gz
ci: Enable coverage reports in test build
While we don't have an high number of tests, we still have some code coverage and so we can track this via gitlab CI, given that it supports it natively. So add gcovr to the DockerFile dependency, build with -Db_coverage=true meson native parameter, and add another manual job to make ninja to generate the coverage reports on requests or in any master or tag ref. Keep the artifacts around to be able to browse the generated HTML files and eventually print the text reports so that they can be parsed by gitlab. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1236
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index c3913793a..b09a9bb07 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -16,7 +16,7 @@ RUN dnf -y update && dnf -y upgrade && \
# For running unit tests
dnf install -y xorg-x11-server-Xvfb mesa-dri-drivers dbus dbus-x11 \
- '*/xvfb-run' gdm-lib accountsservice-libs gnome-control-center \
+ '*/xvfb-run' gdm-lib accountsservice-libs gnome-control-center gcovr \
--setopt=install_weak_deps=False && \
# GNOME Shell