Commit 1ba74d65 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

CI: report code coverage

parent d1b4f4d0
image: fedora:27
stages:
- test
- test
before_script:
- dnf install -y gcc meson gettext itstool redhat-rpm-config git
gtk3-devel gnome-autoar-devel gnome-desktop3-devel
gobject-introspection-devel libselinux-devel
libxml2-devel tracker-devel desktop-file-utils
libgexiv2-devel
libgexiv2-devel gcovr
# Coverage data contains paths relative to the build directory,
# so changing to it makes writing filter expressions easier.
#
# _build/src/ contains generated sources, so that is filtered out as well.
test:
stage: test
script:
- meson _build . -Ddisplay-tests=false
- ninja test -C _build
- meson _build . -Db_coverage=true -Ddisplay-tests=false
- cd _build
- ninja test
- gcovr --root=.
--exclude=src/
--exclude=../data/
--exclude=../eel/check-program.c
--exclude=../eel/eel-debug.c
--exclude=../eel/eel-lib-self-check-functions.c
--exclude=../eel/eel-self-checks.c
--exclude=../src/animation/
--exclude=../src/gtk/
--exclude=../src/nautilus-lib-self-check-functions.c
--exclude=../src/nautilus-self-check-functions.c
--exclude=../subprojects/libgd/
--exclude=../test/
coverage: '/^TOTAL.*\s+(\d+\%)$/'
# Nautilus
![Pipeline status](https://gitlab.gnome.org/GNOME/nautilus/badges/master/build.svg)
![Code coverage](https://gitlab.gnome.org/GNOME/nautilus/badges/master/coverage.svg)
This is [Nautilus](https://wiki.gnome.org/Apps/Nautilus), the file manager for
GNOME.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment