2018-03-16 14:51:02 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2018-03-16 16:57:23 +00:00
|
|
|
- deploy
|
2018-03-16 14:51:02 +00:00
|
|
|
|
2018-03-16 14:00:47 +00:00
|
|
|
build:fedora:
|
|
|
|
image: fedora:28
|
2018-03-16 14:51:02 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2018-03-16 14:58:24 +00:00
|
|
|
- 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 gcovr
|
2018-03-16 14:51:02 +00:00
|
|
|
- meson _build . -Ddisplay-tests=false
|
|
|
|
|
|
|
|
test:fedora:
|
2018-03-16 15:14:08 +00:00
|
|
|
image: fedora:28
|
2018-03-16 14:51:02 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
2018-03-16 14:58:24 +00:00
|
|
|
- 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 gcovr
|
2018-03-16 15:14:08 +00:00
|
|
|
# Waiting for gcovr 3.5 to be released.
|
|
|
|
- pip install git+https://github.com/gcovr/gcovr.git
|
2018-03-16 14:51:02 +00:00
|
|
|
- meson _build . -Db_coverage=true -Ddisplay-tests=false
|
2018-03-16 14:58:24 +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-03-16 14:51:02 +00:00
|
|
|
- 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+\%)$/'
|
2018-03-16 14:00:47 +00:00
|
|
|
|
|
|
|
build:flatpak:
|
|
|
|
image: flatpak/flatpak-builder:gnome-3-28
|
2018-03-16 14:51:02 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- export
|
2018-03-16 16:57:23 +00:00
|
|
|
- flatpak-builder --force-clean --repo=repo app build-aux/flatpak/org.gnome.Nautilus.json
|
|
|
|
|
|
|
|
build:rawhide:
|
|
|
|
image: fedora:rawhide
|
|
|
|
stage: test
|
|
|
|
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 gcovr
|
|
|
|
- meson _build . -Ddisplay-tests=false
|
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
only:
|
|
|
|
-schedules
|
|
|
|
|
|
|
|
build:ubuntu:
|
|
|
|
image: ubuntu:devel
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- apt install -y gcc meson gettext itstool git
|
|
|
|
gtk3-devel gnome-autoar-devel gnome-desktop3-devel
|
|
|
|
gobject-introspection-devel libselinux-devel
|
|
|
|
libxml2-devel tracker-devel desktop-file-utils
|
|
|
|
libgexiv2-devel gcovr
|
|
|
|
- meson _build . -Ddisplay-tests=false
|
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
only:
|
|
|
|
-schedules
|
|
|
|
|
|
|
|
build:suse:
|
|
|
|
image: opensuse:tumbleweed
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- dnf install -y gcc meson gettext itstool git
|
|
|
|
gtk3-devel gnome-autoar-devel gnome-desktop3-devel
|
|
|
|
gobject-introspection-devel libselinux-devel
|
|
|
|
libxml2-devel tracker-devel desktop-file-utils
|
|
|
|
libgexiv2-devel gcovr
|
|
|
|
- meson _build . -Ddisplay-tests=false
|
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
only:
|
|
|
|
-schedules
|