2017-12-08 14:47:50 +00:00
|
|
|
image: fedora:27
|
2017-10-28 23:41:29 +00:00
|
|
|
|
|
|
|
stages:
|
2018-01-07 18:24:10 +00:00
|
|
|
- test
|
2017-10-28 23:41:29 +00:00
|
|
|
|
|
|
|
before_script:
|
2018-01-05 12:12:30 +00:00
|
|
|
- dnf install -y gcc meson gettext itstool redhat-rpm-config git
|
2017-10-28 23:41:29 +00:00
|
|
|
gtk3-devel gnome-autoar-devel gnome-desktop3-devel
|
2017-12-14 12:30:07 +00:00
|
|
|
gobject-introspection-devel libselinux-devel
|
|
|
|
libxml2-devel tracker-devel desktop-file-utils
|
2018-01-07 18:24:10 +00:00
|
|
|
libgexiv2-devel gcovr
|
2017-10-28 23:41:29 +00:00
|
|
|
|
2018-01-07 18:24:10 +00:00
|
|
|
# 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.
|
2018-01-05 22:06:00 +00:00
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-01-07 18:24:10 +00:00
|
|
|
- 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+\%)$/'
|