2018-03-18 13:40:35 +00:00
|
|
|
variables:
|
2018-05-04 08:42:41 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2018-05-06 17:25:32 +00:00
|
|
|
BUNDLE: "nautilus-dev.flatpak"
|
2018-03-18 13:40:35 +00:00
|
|
|
|
2018-03-16 14:51:02 +00:00
|
|
|
stages:
|
2018-05-04 08:42:41 +00:00
|
|
|
- test
|
2018-05-29 06:30:35 +00:00
|
|
|
- cross_environment
|
2018-05-06 17:25:32 +00:00
|
|
|
- deploy
|
2018-03-18 15:41:40 +00:00
|
|
|
|
|
|
|
.test_template: &distro_test
|
|
|
|
script:
|
2018-05-04 08:42:41 +00:00
|
|
|
- meson _build .
|
|
|
|
- cd _build
|
|
|
|
- ninja test
|
2018-03-18 15:41:40 +00:00
|
|
|
|
2018-04-27 11:37:17 +00:00
|
|
|
flatpak:
|
2018-05-22 14:53:07 +00:00
|
|
|
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.28
|
2018-03-17 12:36:44 +00:00
|
|
|
stage: test
|
2018-04-27 11:37:17 +00:00
|
|
|
variables:
|
2018-05-28 13:15:36 +00:00
|
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.yml"
|
2018-05-22 14:53:07 +00:00
|
|
|
MESON_ARGS: "-Dprofile=development -Dtests=all"
|
2018-04-27 11:37:17 +00:00
|
|
|
FLATPAK_MODULE: "nautilus"
|
2018-05-28 13:16:05 +00:00
|
|
|
RUNTIME_REPO: "https://sdk.gnome.org/gnome.flatpakrepo"
|
2018-05-07 07:58:06 +00:00
|
|
|
DBUS_ID: "org.gnome.NautilusDevel"
|
2018-04-27 11:37:17 +00:00
|
|
|
|
2018-07-14 10:30:05 +00:00
|
|
|
before_script:
|
|
|
|
- tar -xzf cache.tar.gz .flatpak-builder/cache/ || true
|
2018-03-16 14:51:02 +00:00
|
|
|
script:
|
2018-05-04 08:42:41 +00:00
|
|
|
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
|
|
|
|
# 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-05-25 19:24:36 +00:00
|
|
|
- flatpak build app meson --prefix=/app --libdir=lib ${MESON_ARGS} _build
|
2018-05-04 08:42:41 +00:00
|
|
|
- flatpak build app ninja -C _build install
|
|
|
|
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
|
|
|
|
# Run automatic tests inside the Flatpak env
|
2018-05-22 14:53:07 +00:00
|
|
|
- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
|
2018-05-25 22:27:05 +00:00
|
|
|
# Generate a Flatpak bundle
|
|
|
|
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
|
2018-07-14 10:30:05 +00:00
|
|
|
after_script:
|
|
|
|
- tar -czf cache.tar.gz .flatpak-builder/cache/
|
2018-03-17 23:16:06 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-05-04 08:42:41 +00:00
|
|
|
- ${BUNDLE}
|
2018-05-25 19:10:22 +00:00
|
|
|
- _build/meson-logs/
|
2018-05-09 18:38:56 +00:00
|
|
|
expire_in: 30 days
|
2018-03-18 15:53:57 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
2018-07-14 10:30:05 +00:00
|
|
|
- cache.tar.gz
|
2018-05-06 17:25:32 +00:00
|
|
|
|
|
|
|
review:
|
|
|
|
stage: deploy
|
|
|
|
dependencies:
|
|
|
|
- flatpak
|
|
|
|
script:
|
|
|
|
- echo "Generating flatpak deployment"
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ${BUNDLE}
|
2018-05-09 18:38:56 +00:00
|
|
|
expire_in: 30 days
|
2018-05-04 08:43:07 +00:00
|
|
|
environment:
|
|
|
|
name: review/$CI_COMMIT_REF_NAME
|
|
|
|
url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
|
2018-05-06 17:25:32 +00:00
|
|
|
on_stop: stop_review
|
|
|
|
except:
|
|
|
|
- master@GNOME/nautilus
|
|
|
|
|
|
|
|
stop_review:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- echo "Stopping flatpak deployment"
|
|
|
|
when: manual
|
|
|
|
environment:
|
|
|
|
name: review/$CI_COMMIT_REF_NAME
|
|
|
|
action: stop
|
|
|
|
except:
|
|
|
|
- master@GNOME/nautilus
|
2018-03-18 15:53:57 +00:00
|
|
|
|
2018-03-17 23:16:06 +00:00
|
|
|
fedora:rawhide:
|
|
|
|
image: fedora:rawhide
|
2018-05-29 06:30:35 +00:00
|
|
|
stage: cross_environment
|
2018-03-19 23:06:54 +00:00
|
|
|
before_script:
|
2018-05-30 07:37:43 +00:00
|
|
|
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config libseccomp-devel
|
2018-05-04 08:42:41 +00:00
|
|
|
- dnf builddep -y nautilus
|
2018-03-19 21:56:41 +00:00
|
|
|
<<: *distro_test
|
2018-03-16 16:57:23 +00:00
|
|
|
only:
|
2018-05-04 08:42:41 +00:00
|
|
|
- schedules
|
|
|
|
- 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-05-29 06:30:35 +00:00
|
|
|
stage: cross_environment
|
2018-03-18 15:41:40 +00:00
|
|
|
before_script:
|
2018-05-04 08:42:41 +00:00
|
|
|
# Ubuntu requires running update to fetch metadata and find packges
|
2018-07-10 15:49:47 +00:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y gcc meson gettext itstool git libgtk-3-dev
|
|
|
|
libgnome-autoar-0-dev
|
|
|
|
gobject-introspection libxml2-dev
|
|
|
|
libtracker-control-2.0-dev desktop-file-utils libgexiv2-dev
|
|
|
|
libtracker-sparql-2.0-dev
|
|
|
|
libgirepository1.0-dev gsettings-desktop-schemas-dev
|
|
|
|
libseccomp-dev
|
2018-03-18 15:41:40 +00:00
|
|
|
<<: *distro_test
|
2018-03-16 16:57:23 +00:00
|
|
|
only:
|
2018-05-04 08:42:41 +00:00
|
|
|
- schedules
|
|
|
|
- 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-05-29 06:30:35 +00:00
|
|
|
stage: cross_environment
|
2018-03-18 15:41:40 +00:00
|
|
|
before_script:
|
2018-05-04 08:42:41 +00:00
|
|
|
- zypper install -y gcc meson gettext-runtime gettext-tools itstool git
|
2018-04-28 10:21:50 +00:00
|
|
|
gtk3-devel gnome-autoar-devel
|
2018-05-04 08:42:41 +00:00
|
|
|
gobject-introspection-devel libxml2-devel tracker-devel
|
2018-07-09 07:27:36 +00:00
|
|
|
desktop-file-utils libgexiv2-devel gsettings-desktop-schemas-devel
|
2018-07-10 15:34:21 +00:00
|
|
|
libseccomp-devel
|
2018-03-18 15:41:40 +00:00
|
|
|
<<: *distro_test
|
2018-03-16 16:57:23 +00:00
|
|
|
only:
|
2018-05-04 08:42:41 +00:00
|
|
|
- schedules
|
|
|
|
- web
|
|
|
|
- tags
|
2018-05-28 13:16:05 +00:00
|
|
|
|
|
|
|
flatpak:master:
|
|
|
|
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
|
2018-05-29 06:30:35 +00:00
|
|
|
stage: cross_environment
|
2018-05-28 13:16:05 +00:00
|
|
|
variables:
|
2018-07-14 09:35:25 +00:00
|
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusMaster.yml"
|
|
|
|
MESON_ARGS: "-Dprofile=Master -Dtests=all"
|
2018-05-28 13:16:05 +00:00
|
|
|
FLATPAK_MODULE: "nautilus"
|
|
|
|
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
|
2018-07-14 09:35:25 +00:00
|
|
|
DBUS_ID: "org.gnome.NautilusMaster"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
|
|
|
|
# Make sure to keep this in sync with the Flatpak manifest, all arguments
|
|
|
|
# are passed except the config-args because we build it ourselves
|
|
|
|
- flatpak build app meson --prefix=/app --libdir=lib ${MESON_ARGS} _build
|
|
|
|
- flatpak build app ninja -C _build install
|
|
|
|
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
|
|
|
|
# Run automatic tests inside the Flatpak env
|
|
|
|
- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
|
|
|
|
# Generate a Flatpak bundle
|
|
|
|
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ${BUNDLE}
|
|
|
|
- _build/meson-logs/
|
|
|
|
expire_in: 30 days
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .flatpak-builder/cache
|
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
- web
|
|
|
|
- tags
|
|
|
|
|
|
|
|
flatpak:gtk4:
|
|
|
|
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
|
|
|
|
stage: cross_environment
|
|
|
|
variables:
|
|
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusGtk4.yml"
|
|
|
|
MESON_ARGS: "-Dprofile=Gtk4 -Dtests=all"
|
|
|
|
FLATPAK_MODULE: "nautilus"
|
|
|
|
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
|
|
|
|
DBUS_ID: "org.gnome.NautilusGtk4"
|
2018-05-28 13:16:05 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
|
|
|
|
# Make sure to keep this in sync with the Flatpak manifest, all arguments
|
|
|
|
# are passed except the config-args because we build it ourselves
|
|
|
|
- flatpak build app meson --prefix=/app --libdir=lib ${MESON_ARGS} _build
|
|
|
|
- flatpak build app ninja -C _build install
|
|
|
|
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
|
|
|
|
# Run automatic tests inside the Flatpak env
|
|
|
|
- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
|
|
|
|
# Generate a Flatpak bundle
|
|
|
|
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ${BUNDLE}
|
|
|
|
- _build/meson-logs/
|
|
|
|
expire_in: 30 days
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .flatpak-builder/cache
|
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
- web
|
|
|
|
- tags
|