diff options
author | Jordan Petridis <jordanpetridis@protonmail.com> | 2018-05-06 20:25:32 +0300 |
---|---|---|
committer | Jordan Petridis <jordanpetridis@protonmail.com> | 2018-05-09 11:10:17 +0000 |
commit | c2efeabf1878775cb41e3579e596d64c4dc7aca9 (patch) | |
tree | 45cafee59d75c5220ee9a8b30a447d4b9d569c77 /.gitlab-ci.yml | |
parent | 2b9b7734947cc2705e21c6cc2bb2f94918b8d108 (diff) | |
download | nautilus-c2efeabf1878775cb41e3579e596d64c4dc7aca9.tar.gz |
gitlabci: Add stop_review job.
Split the enviroment deployment from the flatpak job.
review job depends on the flatpak job, and re-exports its
artifacts for now. Then it creates a review app, that shows
a link to the flatpak bundle.
This commit also restricts enviroment deployments for the master
branch of GNOME/nautilus.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4bf365bf5..2f0edab88 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,11 @@ variables: GIT_SUBMODULE_STRATEGY: normal + BUNDLE: "nautilus-dev.flatpak" stages: - test - cross_distro + - deploy .test_template: &distro_test script: @@ -18,7 +20,6 @@ flatpak: MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.json" MESON_ARGS: "-Dprofile=development -Dtests=all" FLATPAK_MODULE: "nautilus" - BUNDLE: "nautilus-dev.flatpak" RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo" DBUS_ID: "org.gnome.NautilusDevel" @@ -42,9 +43,34 @@ flatpak: cache: paths: - .flatpak-builder/cache + +review: + stage: deploy + dependencies: + - flatpak + script: + - echo "Generating flatpak deployment" + artifacts: + paths: + - ${BUNDLE} + expire_in: 2 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/nautilus + +stop_review: + stage: deploy + script: + - echo "Stopping flatpak deployment" + when: manual + environment: + name: review/$CI_COMMIT_REF_NAME + action: stop + except: + - master@GNOME/nautilus fedora:rawhide: image: fedora:rawhide |