[evince/wip/new-flatpak-ci] build-aux: Update flatpak rules to match Flatpak CI
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/new-flatpak-ci] build-aux: Update flatpak rules to match Flatpak CI
- Date: Mon, 25 Nov 2019 15:40:42 +0000 (UTC)
commit 1b2cdb4d0ce8f6e27e8f71ea4070603da1b1d601
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Mon Nov 25 12:38:09 2019 -0300
build-aux: Update flatpak rules to match Flatpak CI
Update Flatpak CI according to the instructions available at
https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak
on Nov 25, 2019.
The idea is to use the templates, plus generating a bundle for
gnome-nightly.
.gitlab-ci.yml | 49 +++++++++++++------------------------------------
1 file changed, 13 insertions(+), 36 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 82a846d8..76f681e1 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:
- build
- deploy
@@ -70,10 +72,11 @@ flatpak:
variables:
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Evince.json"
- RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
+ RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
FLATPAK_MODULE: "evince"
MESON_ARGS: "-Dnautilus=false -Dgtk_doc=false"
APP_ID: "org.gnome.Evince"
+ extends: .flatpak
script:
- flatpak-builder --stop-at=evince app ${MANIFEST_PATH}
@@ -95,43 +98,17 @@ flatpak:
- .flatpak-builder/downloads
- .flatpak-builder/git
-deploy:
+review:
stage: deploy
-
dependencies:
- flatpak
+ extends: .review
- script:
- - echo "Generating flatpak deployment"
-
- artifacts:
- paths:
- - ${BUNDLE}
- expire_in: 2 days
-
- environment:
- name: deploy/$CI_COMMIT_REF_NAME
- url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
- on_stop: stop_deploy
-
- except:
- - tags
- # don't run on stable branches
- - /^gnome-\d-\d\d$/
- # No need to run on the upstream master branch either
- - master@GNOME/evince
-
-stop_deploy:
+stop_review:
stage: deploy
- script:
- - echo "Stopping flatpak deployment"
- when: manual
- environment:
- name: deploy/$CI_COMMIT_REF_NAME
- action: stop
- except:
- - tags
- # don't run on stable branches
- - /^gnome-\d-\d\d$/
- # No need to run on the upstream master branch either
- - master@GNOME/evince
+ extends: .stop_review
+
+nightly:
+ dependencies:
+ - flatpak
+ extends: .publish_nightly
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]