2018-03-18 13:40:35 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
|
|
|
|
2018-03-16 14:51:02 +00:00
|
|
|
stages:
|
2018-03-17 12:36:44 +00:00
|
|
|
- test
|
|
|
|
- cross_distro
|
2018-03-18 15:41:40 +00:00
|
|
|
|
|
|
|
.test_template: &distro_test
|
|
|
|
script:
|
|
|
|
- meson _build .
|
|
|
|
- cd _build
|
|
|
|
- ninja test
|
|
|
|
|
2018-03-17 23:16:06 +00:00
|
|
|
flatpak:master:
|
2018-03-19 07:51:30 +00:00
|
|
|
image: registry.gitlab.com/alatiera/gnome-nightly-oci/gnome-master:latest
|
2018-03-17 12:36:44 +00:00
|
|
|
stage: test
|
2018-03-16 14:51:02 +00:00
|
|
|
script:
|
2018-03-16 15:24:11 +00:00
|
|
|
- flatpak-builder --stop-at=nautilus app build-aux/flatpak/org.gnome.NautilusDevel.json
|
2018-03-19 12:04:26 +00:00
|
|
|
# Make sure to keep this in sync with the Flatpak manifest, all arguments
|
|
|
|
# are passed except the config-args because we build it ourselves
|
2018-03-16 15:24:11 +00:00
|
|
|
- flatpak-builder --run app build-aux/flatpak/org.gnome.NautilusDevel.json meson --prefix=/app --libdir=/app/lib -Dprofile=development _build
|
|
|
|
- flatpak-builder --run app build-aux/flatpak/org.gnome.NautilusDevel.json ninja -C _build install
|
|
|
|
- flatpak-builder --finish-only --repo=repo app build-aux/flatpak/org.gnome.NautilusDevel.json
|
2018-03-17 23:16:06 +00:00
|
|
|
# Make a Flatpak Nautilus bundle for people to test
|
2018-03-16 15:24:11 +00:00
|
|
|
- flatpak build-bundle repo nautilus-dev.flatpak org.gnome.NautilusDevel
|
2018-03-17 23:16:06 +00:00
|
|
|
# Run automatic tests inside the Flatpak env
|
2018-03-16 15:24:11 +00:00
|
|
|
- flatpak-builder --run app build-aux/flatpak/org.gnome.NautilusDevel.json ninja -C _build test
|
2018-03-17 23:16:06 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-03-19 08:19:43 +00:00
|
|
|
- nautilus-dev.flatpak
|
2018-03-18 17:10:20 +00:00
|
|
|
- _build/meson-logs/meson-log.txt
|
2018-03-19 08:35:07 +00:00
|
|
|
- _build/meson-logs/testlog.txt
|
2018-03-19 08:19:43 +00:00
|
|
|
expire_in: 2 days
|
2018-03-18 15:53:57 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .flatpak-builder/cache
|
|
|
|
|
2018-03-17 23:16:06 +00:00
|
|
|
# Pick any distro to build the coverage
|
|
|
|
fedora:rawhide:
|
|
|
|
image: fedora:rawhide
|
|
|
|
stage: cross_distro
|
|
|
|
script:
|
|
|
|
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config gcovr
|
|
|
|
# Waiting for gcovr 3.5 to be released.
|
|
|
|
- pip install git+https://github.com/gcovr/gcovr.git
|
2018-03-17 00:13:53 +00:00
|
|
|
- dnf builddep -y nautilus
|
2018-03-17 23:16:06 +00:00
|
|
|
- meson _build . -Db_coverage=true
|
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 16:57:23 +00:00
|
|
|
only:
|
2018-03-16 17:00:33 +00:00
|
|
|
- schedules
|
2018-03-18 15:43:07 +00:00
|
|
|
- web
|
|
|
|
- tags
|
2018-03-17 23:16:06 +00:00
|
|
|
|
2018-03-17 12:36:44 +00:00
|
|
|
ubuntu:devel:
|
2018-03-16 16:57:23 +00:00
|
|
|
image: ubuntu:devel
|
2018-03-17 12:36:44 +00:00
|
|
|
stage: cross_distro
|
2018-03-18 15:41:40 +00:00
|
|
|
before_script:
|
2018-03-17 12:23:19 +00:00
|
|
|
# Ubuntu requires running update to fetch metadata and find packges
|
|
|
|
- apt update
|
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-17 13:24:56 +00:00
|
|
|
libgail-3-dev libtracker-sparql-2.0-dev
|
|
|
|
libgirepository1.0-dev
|
2018-03-18 15:41:40 +00:00
|
|
|
<<: *distro_test
|
2018-03-16 16:57:23 +00:00
|
|
|
only:
|
2018-03-16 17:00:33 +00:00
|
|
|
- schedules
|
2018-03-18 15:43:07 +00:00
|
|
|
- web
|
|
|
|
- tags
|
2018-03-17 23:16:06 +00:00
|
|
|
|
2018-03-17 12:36:44 +00:00
|
|
|
opensuse:tumbleweed:
|
2018-03-16 16:57:23 +00:00
|
|
|
image: opensuse:tumbleweed
|
2018-03-17 12:36:44 +00:00
|
|
|
stage: cross_distro
|
2018-03-18 15:41:40 +00:00
|
|
|
before_script:
|
2018-03-17 10:31:58 +00:00
|
|
|
- zypper install -y gcc meson gettext-runtime gettext-tools itstool git
|
|
|
|
gtk3-devel gnome-autoar-devel libgnome-desktop-3-devel
|
2018-03-16 23:18:01 +00:00
|
|
|
gobject-introspection-devel libxml2-devel tracker-devel
|
|
|
|
desktop-file-utils libgexiv2-devel
|
2018-03-18 15:41:40 +00:00
|
|
|
<<: *distro_test
|
2018-03-16 16:57:23 +00:00
|
|
|
only:
|
2018-03-18 11:06:57 +00:00
|
|
|
- schedules
|
2018-03-18 15:43:07 +00:00
|
|
|
- web
|
|
|
|
- tags
|