From aafec16f4975ebfb4f14c59c50251f3df7ee8ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 19 Mar 2020 18:20:27 +0100 Subject: [PATCH] ci: Build Extensions flatpak bundle GNOME apps use (or are encouraged to use) flatpak in their CI setup[0], so do that for the Extensions app as well and get: - test building the flatpak - produce a bundle for download and testing - publish the build in gnome-nightly [0] https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1133 --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c7f925cc0..a3bc34250 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,13 @@ +include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml' + stages: - review - build - test + - deploy variables: + BUNDLE: "extensions-git.flatpak" JS_LOG: "js-report.txt" POT_LOG: "pot-update.txt" @@ -110,3 +114,24 @@ test-pot: ' | tee $POT_LOG - (! grep -q . $POT_LOG) <<: *only_default + +flatpak: + stage: build + variables: + SUBPROJECT: "subprojects/extensions-app" + # Your manifest path + MANIFEST_PATH: "$SUBPROJECT/build-aux/flatpak/org.gnome.Extensions.json" + RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo" + FLATPAK_MODULE: "gnome-extensions-app" + APP_ID: "org.gnome.Extensions" + MESON_ARGS: "$SUBPROJECT" + extends: .flatpak + before_script: + - flatpak run --command=$SUBPROJECT/generate-translations.sh + --filesystem=host org.gnome.Sdk//master + <<: *only_default + +nightly: + extends: '.publish_nightly' + variables: + BUNDLES: '$BUNDLE'