diff options
author | Marcus Lundblad <ml@update.uu.se> | 2020-02-21 12:03:53 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2020-02-21 22:35:15 +0100 |
commit | 654299b179d342c684da561affaa003782996f10 (patch) | |
tree | fe1044b38219afb2baa37cc0fe193e27355ca0dc /.gitlab-ci.yml | |
parent | 3931b3172b20cc47dec5e595a7c1c8603274607f (diff) | |
download | gnome-maps-654299b179d342c684da561affaa003782996f10.tar.gz |
gitlab-ci: Extend .flatpakci/extends-flatpak
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 56 |
1 files changed, 8 insertions, 48 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29e91e51..7f0efa90 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,7 @@ -stages: -- test -- review - -variables: - # Replace with your preferred file name of the resulting Flatpak bundle - BUNDLE: "gnome-maps-git.flatpak" +include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml' flatpak: + extends: .flatpak image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master stage: test variables: @@ -18,19 +13,8 @@ flatpak: # Make sure to keep this in sync with the Flatpak manifest, all arguments # are passed except the config-args because we build it ourselves MESON_ARGS: "" - DBUS_ID: "org.gnome.Maps" - - script: - - flatpak-builder --user --disable-rofiles-fuse --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 ${MESON_ARGS} _build - - flatpak build app ninja -C _build install - - flatpak-builder --user --disable-rofiles-fuse --finish-only --repo=repo app ${MANIFEST_PATH} - # Generate a Flatpak bundle - - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID} - # Run automatic tests inside the Flatpak env - - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test + APP_ID: "org.gnome.Maps" + BUNDLE: "gnome-maps-git.flatpak" artifacts: paths: - ${BUNDLE} @@ -41,32 +25,8 @@ flatpak: paths: - .flatpak-builder/cache -review: - stage: review - dependencies: - - flatpak - script: - - echo "Generating flatpak deployment" - artifacts: - paths: - - ${BUNDLE} - expire_in: 30 days - environment: - name: review/$CI_COMMIT_REF_NAME - url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE} - on_stop: stop_review - except: - - master@GNOME/gnome-maps - - tags +nightly: + extends: '.publish_nightly' + # assuming your job in named 'flatpak' + dependencies: ['flatpak'] -stop_review: - stage: review - script: - - echo "Stopping flatpak deployment" - when: manual - environment: - name: review/$CI_COMMIT_REF_NAME - action: stop - except: - - master@GNOME/gnome-maps - - tags |