[gnome-calculator/wip/cdavis/flatpak-ci] ci: Remove distro CI in favor of flatpak
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/wip/cdavis/flatpak-ci] ci: Remove distro CI in favor of flatpak
- Date: Thu, 18 Nov 2021 20:13:13 +0000 (UTC)
commit b81c3cc29bb501fa3963be2aa5b6bfbd60ab47cc
Author: Christopher Davis <christopherdavis gnome org>
Date: Thu Nov 18 12:09:46 2021 -0800
ci: Remove distro CI in favor of flatpak
This commit removes our distro-reliant CI in favor of
a flatpak-based CI pipeline. This pipeline will be more
reliable, have up-to-date dependencies (e.g. libadwaita),
and produce a flatpak bundle for each MR and push to master.
It will also make the developer version of Calculator
available on the nightly flatpak repository. This means
it will be easier for users and developers alike
to test Calculator.
.gitlab-ci.yml | 65 +++++++++++++++-------------------------------------------
1 file changed, 16 insertions(+), 49 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18329fb9..a3a9fdb5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,49 +1,16 @@
-.before_script_template: &ubuntu_before_script
- image: ubuntu:rolling
- before_script:
- - apt-get update
- - DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends valac gcc gettext itstool
libgtk-3-dev libgtk-3-bin libgtksourceview-4-dev libmpc-dev libmpfr-dev libsoup2.4-dev libxml2-dev
libgee-0.8-dev libvala-0.48 libhandy-1-dev python3-pip ninja-build
- - pip3 install --upgrade setuptools
- - pip3 install --no-cache-dir meson>=0.50.0
-
-.before_script_template: &fedora_before_script
- image: fedora:latest
- before_script:
- - dnf install -y meson vala itstool gtk3-devel gtksourceview4-devel libmpc-devel mpfr-devel
libsoup-devel libxml2-devel libgee-devel libhandy1-devel
-
-.build_template: &meson_build
- stage: build
- script:
- - meson -Dui-tests=true _build .
- - ninja -C _build install
- artifacts:
- paths:
- - _build/
- expire_in: 2 hours
-
-.test_template: &meson_test
- stage: test
- script:
- - broadwayd &
- - GDK_BACKEND=broadway ninja -C _build test
-
-build:fedora:
- <<: *fedora_before_script
- <<: *meson_build
-
-build:ubuntu:
- <<: *ubuntu_before_script
- <<: *meson_build
-
-test:ubuntu:
- dependencies:
- - build:ubuntu
- <<: *ubuntu_before_script
- <<: *meson_test
-
-test:fedora:
- dependencies:
- - build:fedora
- <<: *fedora_before_script
- <<: *meson_test
-
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
+flatpak:
+ image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
+ variables:
+ MANIFEST_PATH: "org.gnome.Calculator.json"
+ FLATPAK_MODULE: "nautilus"
+ APP_ID: "org.gnome.Calculator"
+ RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
+ BUNDLE: "gnome-calculator-dev.flatpak"
+ extends: '.flatpak'
+
+nightly:
+ extends: '.publish_nightly'
+ dependencies: ['flatpak']
+ needs: ['flatpak']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]