[gitg/bielmoussaoui/nightlies: 2/3] CI: publish nightlies



commit fad6e7c1aa9e74f7fefec547f7325484fd9366f3
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Thu Oct 10 10:27:58 2019 +0000

    CI: publish nightlies
    
    This uses the shared ci template
    see https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak

 .gitlab-ci.yml | 71 ++++++++++++++--------------------------------------------
 1 file changed, 17 insertions(+), 54 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 43de4360..442fcc61 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,65 +1,28 @@
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
 stages:
-- test
-- review
-- deploy
+  - test
+  - deploy
 
 variables:
     BUNDLE: "gitg-git.flatpak"
 
 flatpak:
-    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
-    stage: test
-
-    variables:
-        # Replace with your manifest path
-        MANIFEST_PATH: "org.gnome.gitgDevel.json"
-        RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
-        FLATPAK_MODULE: "gitg"
-        MESON_ARGS: "-Ddeprecations=true --buildtype=debugoptimized -Dprofile=development"
-        DBUS_ID: "org.gnome.gitgDevel"
-
-    script:
-        - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
-        - flatpak build app meson --prefix=/app ${MESON_ARGS} _build
-        - flatpak build app ninja -C _build install
-
-        - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
-        - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
-        - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
-
-    artifacts:
-        paths:
-            - ${BUNDLE}
-            - public/
-            - _build/meson-logs/meson-log.txt
-            - _build/meson-logs/testlog.txt
-        expire_in: 6 hours
-
-    cache:
-        paths:
-             - .flatpak-builder/cache
+  extends: '.flatpak'
+  variables:
+    MANIFEST_PATH: "org.gnome.gitgDevel.json"
+    RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo";
+    FLATPAK_MODULE: "gitg"
+    MESON_ARGS: "-Ddeprecations=true --buildtype=debugoptimized -Dprofile=development"
+    DBUS_ID: "org.gnome.gitgDevel"
 
 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
+  dependencies:
+    - 'flatpak'
+  extends: '.review'
 
 stop_review:
-    stage: review
-    script:
-        - echo "Stopping flatpak deployment"
-    when: manual
-    environment:
-        name: review/$CI_COMMIT_REF_NAME
-        action: stop
+  extends: '.stop_review'
 
+nightly:
+  extends: '.publish_nightly'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]