[gnome-usage: 1/6] Add Flatpak build on the CI
- From: Petr Štětka <pstetka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage: 1/6] Add Flatpak build on the CI
- Date: Thu, 3 Jan 2019 10:04:34 +0000 (UTC)
commit d9965e1fdaf72983debefc1d38fa526a7dc474d1
Author: yodatak <mryodatak gmail com>
Date: Tue Dec 4 20:26:53 2018 +0000
Add Flatpak build on the CI
.gitlab-ci.yml | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fcdb9e2..99f0485 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,44 @@
-image: fedora:28
stages:
- build
+
+variables:
+ BUNDLE: "org.gnome.Usage.Devel.flatpak"
+
+
before_script:
- dnf update -y
- dnf install -y gcc meson gettext gtk-doc vala gtk3-devel libgtop2-devel
desktop-file-utils
build-gnome-usage:
+ image: fedora:28
stage: build
script:
- meson _build .
- ninja -C _build
- ninja -C _build install
+
+build-gnome-usage-flatpak:
+ image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+ stage: build
+ variables:
+ MANIFEST_PATH: "org.gnome.Usage.json"
+ MESON_ARGS: "-Dprofile=development"
+ RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
+ FLATPAK_MODULE: "org.gnome.Usage"
+ DBUS_ID: "org.gnome.Usage"
+ script:
+ - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
+ - flatpak build app meson --prefix=/app -Dprofile=development ${MESON_ARGS} _build
+ - flatpak build app ninja -C _build install
+ - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
+ - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
+
+ artifacts:
+ paths:
+ - ${BUNDLE}
+ - _build/meson-logs/meson-log.txt
+ expire_in: 30 days
+ cache:
+ paths:
+ - .flatpak-builder/downloads
+ - .flatpak-builder/git
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]