summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbderrahim Kitouni <akitouni@gnome.org>2019-09-18 16:53:56 +0100
committerAbderrahim Kitouni <akitouni@gnome.org>2019-09-18 16:53:56 +0100
commit37257d2f27e751eba97656ca71f4e38934c1c3e9 (patch)
tree09a996cbfdbe55076ef196ad8fc11f9e4653af5b
parent5e4bbe446f636fe2fa7528ab8602988bcc2320ff (diff)
downloadgnome-calendar-abderrahim/flatpak-nightly.tar.gz
.gitlab-ci.yml: update to the current version of the Flatpak CI initiativeabderrahim/flatpak-nightly
-rw-r--r--.gitlab-ci.yml52
1 files changed, 6 insertions, 46 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6a1b5dfb..c3e39eeb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,5 @@
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
stages:
- flatpak
- deploy
@@ -9,12 +11,13 @@ variables:
flatpak:
+ extends: .flatpak
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: flatpak
variables:
# Replace with your manifest path
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Calendar.json"
- RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
+ RUNTIME_REPO: "https://nigthly.gnome.org/gnome-nightly.flatpakrepo"
# Replace with your application name, as written in the manifest
FLATPAK_MODULE: "gnome-calendar"
# Make sure to keep this in sync with the Flatpak manifest, all arguments
@@ -22,53 +25,10 @@ flatpak:
MESON_ARGS: "-Dtracing=true"
APP_ID: "org.gnome.Calendar"
- 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 ${MESON_ARGS} _build
- - flatpak build app ninja -C _build install
- - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
- # Generate a Flatpak bundle
- - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID}
- # Run automatic tests inside the Flatpak env
- - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
- artifacts:
- paths:
- - ${BUNDLE}
- - _build/meson-logs/meson-log.txt
- - _build/meson-logs/testlog.txt
- expire_in: 30 days
- cache:
- paths:
- - .flatpak-builder/cache
-
review:
- stage: review
+ extends: .review
dependencies:
- flatpak
- script:
- - echo "Generating flatpak deployment"
- artifacts:
- paths:
- - ${BUNDLE}
- expire_in: 20 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-calendar
- - tags
stop_review:
- stage: review
- script:
- - echo "Stopping flatpak deployment"
- when: manual
- environment:
- name: review/$CI_COMMIT_REF_NAME
- action: stop
- except:
- - master@GNOME/gnome-calendar
- - tags
+ extends: .stop_review