[gnome-characters/jjardon/ci_template] .gitlab-ci.yml: Use template to build flatpak
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/jjardon/ci_template] .gitlab-ci.yml: Use template to build flatpak
- Date: Wed, 1 Apr 2020 19:18:01 +0000 (UTC)
commit 5374739204ffe7de58f7f42a2875139eb08f6b68
Author: Javier Jardón <jjardon gnome org>
Date: Wed Apr 1 20:16:48 2020 +0100
.gitlab-ci.yml: Use template to build flatpak
See https://gitlab.gnome.org/GNOME/Initiatives/-/wikis/DevOps-with-Flatpak
.gitlab-ci.yml | 57 +++++++++------------------------------------------------
1 file changed, 9 insertions(+), 48 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ada2b4c..f9149e0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,62 +1,23 @@
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
stages:
- test
- cross_environment
- - deploy
-
-variables:
- BUNDLE: "gnome-characters.flatpak"
flatpak:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
- stage: test
variables:
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Characters.json"
MESON_ARGS: "-Dprofile=development"
FLATPAK_MODULE: "gnome-characters"
- RUNTIME_REPO: "https://sdk.gnome.org/gnome.flatpakrepo"
- DBUS_ID: "org.gnome.CharactersDevel"
-
- 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}
- # 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
+ APP_ID: "org.gnome.CharactersDevel"
+ RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
+ BUNDLE: "gnome-characters.flatpak"
+ extends: .flatpak
-review:
- stage: deploy
- 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
-
-stop_review:
- stage: deploy
- script:
- - echo "Stopping flatpak deployment"
- when: manual
- environment:
- name: review/$CI_COMMIT_REF_NAME
- action: stop
+nightly:
+ extends: '.publish_nightly'
+ dependencies: ['flatpak']
fedora:latest:
image: fedora:latest
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]