[pitivi/thiblahute/sdk3.30: 5/5] ci: Add a target to update our flatpak repository



commit 9f17d3ab4ee81e20631c99fbfb41389b7c9933da
Author: Thibault Saunier <tsaunier igalia com>
Date:   Thu Dec 6 16:08:16 2018 -0300

    ci: Add a target to update our flatpak repository
    
    And export to the Pitivi flatpak from there

 .gitlab-ci.yml | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 84a54698..48dced4f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,12 +2,17 @@ stages:
   - build
   - deploy
 
+variables:
+    BUNDLE: "pitivi.flatpak"
+    MANIFEST: build/flatpak/org.pitivi.Pitivi.json
+    DBUS_ID: org.pitivi.Pitivi
+    BRANCH: master
+
 build:
   image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.30
   stage: build
   script:
     - export XUNIT_PATH=${CI_PROJECT_DIR}/xunit.xml
-    - export MANIFEST=${CI_PROJECT_DIR}/build/flatpak/org.pitivi.Pitivi.json
     - export RUN_IN_SANDBOX="flatpak-builder --filesystem=${CI_PROJECT_DIR} --env=PITIVI_DEVELOPMENT=1 --run 
app ${MANIFEST}"
 
     # Working around the fact that flatpak-builder *requires* the cache dir
@@ -19,6 +24,19 @@ build:
     - ${RUN_IN_SANDBOX} meson mesonbuild/
     - ${RUN_IN_SANDBOX} ninja -C mesonbuild/
     - xvfb-run -n 32 -s "-screen 0 640x480x24" ${RUN_IN_SANDBOX} gst-validate-launcher 
$PWD/tests/ptv_testsuite.py --dump-on-failure --timeout-factor 4 --xunit-file ${XUNIT_PATH}
+    - flatpak-builder --finish-only --repo=repo app ${MANIFEST}
+    - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME} ${DBUS_ID} ${BRANCH}
   cache:
     paths:
     - flatpak-cache
+  artifacts:
+    paths:
+    - ${BUNDLE}
+    expire_in: 30 days
+
+deploy:
+  tags:
+    - PitiviBuildMachine
+  stage: deploy
+  script:
+    - flatpak build-import-bundle repo ${BUNDLE}


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