2018-03-16 14:51:02 +00:00
|
|
|
stages:
|
2018-03-16 23:23:08 +00:00
|
|
|
- Build
|
|
|
|
- Test
|
|
|
|
- WeeklyTest
|
2018-03-16 14:51:02 +00:00
|
|
|
|
2018-03-17 08:26:54 +00:00
|
|
|
build:Fedora:
|
2018-03-16 14:00:47 +00:00
|
|
|
image: fedora:28
|
2018-03-16 23:23:08 +00:00
|
|
|
stage: Build
|
2018-03-16 14:51:02 +00:00
|
|
|
script:
|
2018-03-17 00:08:47 +00:00
|
|
|
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config
|
2018-03-17 00:13:53 +00:00
|
|
|
- dnf builddep -y nautilus
|
2018-03-16 21:01:33 +00:00
|
|
|
- meson _build .
|
2018-03-16 23:18:01 +00:00
|
|
|
- ninja -C _build
|
2018-03-16 14:51:02 +00:00
|
|
|
|
2018-03-17 08:26:54 +00:00
|
|
|
test:Fedora:
|
2018-03-16 15:14:08 +00:00
|
|
|
image: fedora:28
|
2018-03-16 23:23:08 +00:00
|
|
|
stage: Test
|
2018-03-16 14:51:02 +00:00
|
|
|
script:
|
2018-03-17 09:01:32 +00:00
|
|
|
- dnf install -y gcovr 'dnf-command(builddep)' redhat-rpm-config git
|
2018-03-17 00:13:53 +00:00
|
|
|
- dnf builddep -y nautilus
|
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 21:01:33 +00:00
|
|
|
# Waiting for gcovr 3.5 to be released.
|
|
|
|
- pip install git+https://github.com/gcovr/gcovr.git
|
|
|
|
- meson _build . -Db_coverage=true
|
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
|
|
|
|
2018-03-17 08:26:54 +00:00
|
|
|
build:Flatpak:
|
2018-03-16 14:00:47 +00:00
|
|
|
image: flatpak/flatpak-builder:gnome-3-28
|
2018-03-16 23:23:08 +00:00
|
|
|
stage: Build
|
2018-03-16 14:51:02 +00:00
|
|
|
script:
|
2018-03-16 19:46:54 +00:00
|
|
|
# This should be removed once the base image works with git submodules
|
2018-03-16 17:33:24 +00:00
|
|
|
- dnf install -y git
|
2018-03-16 14:51:02 +00:00
|
|
|
- export
|
2018-03-16 16:57:23 +00:00
|
|
|
- flatpak-builder --force-clean --repo=repo app build-aux/flatpak/org.gnome.Nautilus.json
|
2018-03-16 19:06:47 +00:00
|
|
|
- flatpak build-bundle repo nautilus-dev.flatpak org.gnome.Nautilus
|
2018-03-16 17:33:24 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- nautilus-dev.flatpak
|
2018-03-16 20:01:25 +00:00
|
|
|
expire_in: 2 days
|
2018-03-16 17:33:24 +00:00
|
|
|
|
2018-03-16 16:57:23 +00:00
|
|
|
|
2018-03-17 08:26:54 +00:00
|
|
|
test:FedoraRawhide:
|
2018-03-16 16:57:23 +00:00
|
|
|
image: fedora:rawhide
|
2018-03-16 23:23:08 +00:00
|
|
|
stage: WeeklyTest
|
2018-03-16 16:57:23 +00:00
|
|
|
script:
|
2018-03-17 00:08:47 +00:00
|
|
|
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config
|
2018-03-17 00:13:53 +00:00
|
|
|
- dnf builddep -y nautilus
|
2018-03-16 19:00:38 +00:00
|
|
|
- meson _build .
|
2018-03-16 16:57:23 +00:00
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
only:
|
2018-03-16 17:00:33 +00:00
|
|
|
- schedules
|
2018-03-16 16:57:23 +00:00
|
|
|
|
2018-03-17 08:26:54 +00:00
|
|
|
test:Ubuntu:
|
2018-03-16 16:57:23 +00:00
|
|
|
image: ubuntu:devel
|
2018-03-16 23:23:08 +00:00
|
|
|
stage: WeeklyTest
|
2018-03-16 16:57:23 +00:00
|
|
|
script:
|
|
|
|
- apt install -y gcc meson gettext itstool git
|
2018-03-16 23:52:11 +00:00
|
|
|
gtk3-devel gnome-autoar-devel gnome-desktop3-devel
|
|
|
|
gobject-introspection-devel libselinux-devel
|
|
|
|
libxml2-devel tracker-devel desktop-file-utils
|
|
|
|
libgexiv2-devel
|
2018-03-16 19:00:38 +00:00
|
|
|
- meson _build .
|
2018-03-16 16:57:23 +00:00
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
only:
|
2018-03-16 17:00:33 +00:00
|
|
|
- schedules
|
2018-03-16 16:57:23 +00:00
|
|
|
|
2018-03-17 08:26:54 +00:00
|
|
|
test:OpenSuse:
|
2018-03-16 16:57:23 +00:00
|
|
|
image: opensuse:tumbleweed
|
2018-03-16 23:23:08 +00:00
|
|
|
stage: WeeklyTest
|
2018-03-16 16:57:23 +00:00
|
|
|
script:
|
2018-03-16 23:18:01 +00:00
|
|
|
- zypper install -y gcc meson gettext itstool git gtk3-devel
|
|
|
|
gnome-autoar-devel libgnome-desktop-3-devel
|
|
|
|
gobject-introspection-devel libxml2-devel tracker-devel
|
|
|
|
desktop-file-utils libgexiv2-devel
|
2018-03-16 19:00:38 +00:00
|
|
|
- meson _build .
|
2018-03-16 16:57:23 +00:00
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
only:
|
2018-03-16 19:00:38 +00:00
|
|
|
- schedules
|