[gtranslator/new-gitlab-ci] CI: Update gitlabci with new templates
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/new-gitlab-ci] CI: Update gitlabci with new templates
- Date: Tue, 8 Oct 2019 06:24:06 +0000 (UTC)
commit 04a6490eb8e258141bf0795768c9367b3882dd71
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Tue Oct 8 08:23:52 2019 +0200
CI: Update gitlabci with new templates
.gitlab-ci.yml | 71 ++++++++++++++++------------------------------------------
1 file changed, 19 insertions(+), 52 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dd97fbb4..64ed3425 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,67 +1,34 @@
----
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
stages:
- test
- review
+ - deploy
variables:
BUNDLE: "org.gnome.Gtranslator.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/
flatpak:
- image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.32"
- 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 _build
- - flatpak-builder --run app ${MANIFEST_PATH} ninja -C _build install
+ extends: .flatpak
+ variables:
+ GIT_SUBMODULE_STRATEGY: normal
- # 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
+ # Replace with your manifest path
+ MANIFEST_PATH: "build-aux/flatpak/org.gnome.Gtranslator.json"
+ RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
+ # Replace with your application name, as written in the manifest
+ FLATPAK_MODULE: "gtranslator"
+ APP_ID: "org.gnome.Gtranslator"
review:
- stage: review
+ extends: .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
+ extends: .stop_review
+
+nightly:
+ extends: '.publish_nightly'
+ dependencies:
+ - 'flatpak'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]