ci: Add manual jobs for Flatpak bundles

Bundles can be useful on branches and MRs as an opt-in.
This commit is contained in:
Emmanuele Bassi 2019-04-05 19:15:11 +01:00
parent 220c516691
commit f756c3b8a0

View File

@ -57,20 +57,46 @@ msys2-mingw32:
script: script:
- bash -x ./.gitlab-ci/flatpak-build.sh "${APPID}" - bash -x ./.gitlab-ci/flatpak-build.sh "${APPID}"
flatpak:demo: # Manual jobs, for branches and MRs
.flatpak-manual: &flatpak-manual
<<: *flatpak-defaults
when: manual
# Only build Flatpak bundles automatically on master
.flatpak-master: &flatpak-master
<<: *flatpak-defaults
only:
- master
flatpak-manual:demo:
variables: variables:
APPID: org.gtk.Demo4 APPID: org.gtk.Demo4
<<: *flatpak-defaults <<: *flatpak-manual
flatpak:widget-factory: flatpak-master:demo:
variables:
APPID: org.gtk.Demo4
<<: *flatpak-master
flatpak-manual:widget-factory:
variables: variables:
APPID: org.gtk.WidgetFactory4 APPID: org.gtk.WidgetFactory4
<<: *flatpak-defaults <<: *flatpak-manual
flatpak:icon-browser: flatpak-master:widget-factory:
variables:
APPID: org.gtk.WidgetFactory4
<<: *flatpak-master
flatpak-manual:icon-browser:
variables: variables:
APPID: org.gtk.IconBrowser4 APPID: org.gtk.IconBrowser4
<<: *flatpak-defaults <<: *flatpak-manual
flatpak-master:icon-browser:
variables:
APPID: org.gtk.IconBrowser4
<<: *flatpak-master
pages: pages:
image: registry.gitlab.gnome.org/gnome/gtk/master:v3 image: registry.gitlab.gnome.org/gnome/gtk/master:v3