[gtranslator] CI: Fix stop_review name and 2 spaces tab
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] CI: Fix stop_review name and 2 spaces tab
- Date: Wed, 12 Sep 2018 11:55:24 +0000 (UTC)
commit e05312beba31b3fc0f7bb52f9eb174f4ae62c345
Author: Daniel GarcĂa Moreno <danigm wadobo com>
Date: Wed Sep 5 21:04:15 2018 +0200
CI: Fix stop_review name and 2 spaces tab
.gitlab-ci.yml | 103 ++++++++++++++++++++++++++++-----------------------------
1 file changed, 51 insertions(+), 52 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4fd9c08e..41da9a77 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,68 +1,67 @@
+---
stages:
- test
- review
variables:
- BUNDLE: "org.gnome.GtranslatorDevel.flatpak"
- MANIFEST_PATH: "build-aux/flatpak/org.gnome.Gtranslator.json"
- FLATPAK_MODULE: "gtranslator"
- DBUS_ID: "org.gnome.GtranslatorDevel"
+ BUNDLE: "org.gnome.GtranslatorDevel.flatpak"
+ MANIFEST_PATH: "build-aux/flatpak/org.gnome.Gtranslator.json"
+ FLATPAK_MODULE: "gtranslator"
+ DBUS_ID: "org.gnome.GtranslatorDevel"
.flatpak_cache_template: &flatpak_cache
- cache:
- key: "flatpak"
- paths:
- - .flatpak-builder/cache/
-
+ cache:
+ key: "flatpak"
+ paths:
+ - .flatpak-builder/cache/
flatpak:
- image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
- stage: "test"
- script:
- - flatpak-builder --stop-at=${FLATPAK_MODULE} --force-clean app ${MANIFEST_PATH}
-
- # Build the flatpak repo
- - flatpak-builder --run app ${MANIFEST_PATH} meson --prefix=/app -Dprofile=development _build
- - flatpak-builder --run app ${MANIFEST_PATH} ninja -C _build install
+ image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
+ stage: "test"
+ script:
+ - flatpak-builder --stop-at=${FLATPAK_MODULE} --force-clean app ${MANIFEST_PATH}
- # Create a flatpak bundle
- - flatpak-builder --finish-only app ${MANIFEST_PATH}
- - flatpak build-export repo app
- - flatpak build-bundle repo ${BUNDLE} ${DBUS_ID}
+ # Build the flatpak repo
+ - flatpak-builder --run app ${MANIFEST_PATH} meson --prefix=/app -Dprofile=development _build
+ - flatpak-builder --run app ${MANIFEST_PATH} ninja -C _build install
- artifacts:
- paths:
- - "${BUNDLE}"
- expire_in: 30 days
- <<: *flatpak_cache
+ # Create a flatpak bundle
+ - flatpak-builder --finish-only app ${MANIFEST_PATH}
+ - flatpak build-export repo app
+ - flatpak build-bundle repo ${BUNDLE} ${DBUS_ID}
+ artifacts:
+ paths:
+ - "${BUNDLE}"
+ expire_in: 30 days
+ <<: *flatpak_cache
review:
- stage: review
- 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
- except:
- - master@GNOME/gtranslator
- - tags
+ stage: review
+ 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
+ except:
+ - master@GNOME/gtranslator
+ - tags
stop_review:
- stage: review
- script:
- - echo "Stopping flatpak deployment"
- when: manual
- environment:
- name: "review/${CI_COMMIT_REF_NAME}"
- action: stop
- except:
- - master@GNOME/gtranslator
- - tags
+ stage: review
+ script:
+ - echo "Stopping flatpak deployment"
+ when: manual
+ environment:
+ name: review/$CI_COMMIT_REF_NAME
+ action: stop
+ except:
+ - master@GNOME/gtranslator
+ - tags
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]