From 6f2808c7cd49d06c2b212e0b7b821937e93e3238 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 30 Aug 2022 14:08:26 +0200 Subject: [PATCH] ci: Include flatpak_ci_initiative.yml and remove inline copy The copy was originally done because the include failed while Calls was still being hosted at source.puri.sm. --- .gitlab-ci.yml | 44 ++------------------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b499985..facb747 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ include: - 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml' + - 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml' stages: - build @@ -76,51 +77,10 @@ package:deb-pureos-byzantium:arm64: - aarch64 extends: .l5-build-debian-package -# For some reason including https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml fails with a network error (status code 500), therefore it's copied here -.flatpak: - image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master' - stage: 'package' - interruptible: true - timeout: 4h - # Make CI pass while I figure things out - allow_failure: true - tags: - - flatpak - script: - - rewrite-flatpak-manifest ${MANIFEST_PATH} ${FLATPAK_MODULE} ${CONFIG_OPTS} - - flatpak-builder --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH} - # Generate a Flatpak bundle - - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH} - - tar cf repo.tar repo/ - - artifacts: - name: 'Flatpak artifacts' - expose_as: 'Get Flatpak bundle here' - when: 'always' - paths: - - "${BUNDLE}" - - 'repo.tar' - - '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt' - - '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt' - reports: - junit: '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.junit.xml' - expire_in: 14 days - cache: - - key: "$CI_JOB_NAME" - paths: - - '.flatpak-builder/downloads' - - '.flatpak-builder/git' - - key: "$CI_JOB_NAME" - paths: - - '.flatpak-builder/cache' - - '.flatpak-builder/ccache' - except: - variables: - - $PKG_ONLY == "1" - flatpak:master: extends: .flatpak stage: package + allow_failure: true variables: MANIFEST_PATH: "org.gnome.Calls.json" RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"