[gnome-control-center/alatiera/CI-flatpak-cleanups: 5/5] CI: Improve the flatpak review environments
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/alatiera/CI-flatpak-cleanups: 5/5] CI: Improve the flatpak review environments
- Date: Mon, 13 Aug 2018 01:31:22 +0000 (UTC)
commit 265dca6c1b870d2364b11d3fa49a143ef2988c4d
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Sat Aug 11 10:51:38 2018 +0000
CI: Improve the flatpak review environments
For more:
https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak#flatpak-bundle-for-every-mr-and-commit
.gitlab-ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7a1c23879..0f5e6fa93 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ stages:
- build
- test
- manual
+ - review
- deploy
.Log files: &log_files [./*.log, _build/meson-logs/]
@@ -144,12 +145,13 @@ pages:
# Creates a flatpak
##
flatpak:
- stage: deploy
+ stage: manual
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
artifacts:
name: package
paths:
- $(pwd)/*.flatpak
+ expire_in: 2 days
variables:
APPID: "org.gnome.SettingsDevel"
@@ -188,10 +190,49 @@ flatpak:
paths:
- .flatpak-builder/cache
+ when: manual
+
+ except:
+ - tags
+ - gnome-3-.*
+ - master@GNOME/project-url
+
+review:
+ stage: review
+ dependencies:
+ - flatpak
+
+ when: manual
+
+ variables:
+ BUNDLE: "org.gnome.SettingsDevel.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:
+ - tags
+ - gnome-3-.*
+ - master@GNOME/project-url
+
+stop_review:
+ stage: review
+ script:
+ - echo "Stopping flatpak deployment"
when: manual
+ environment:
+ name: review/$CI_COMMIT_REF_NAME
+ action: stop
# Runs the sanitizers [address, thread, undefined, and memory].
.sanitizer: &sanitizer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]