nautilus/.gitlab-ci.yml

99 lines
2.8 KiB
YAML
Raw Normal View History

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