[shotwell] ci: Add configuration
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] ci: Add configuration
- Date: Sun, 18 Nov 2018 11:44:55 +0000 (UTC)
commit c3d0da6eaaa6618ccd23325889e224e2495bea41
Author: Jens Georg <mail jensge org>
Date: Sun Nov 18 11:59:43 2018 +0100
ci: Add configuration
.gitlab-ci.yml | 80 +++++++++++++++++++++++++++++++++++++++++
flatpak/org.gnome.Shotwell.json | 2 +-
2 files changed, 81 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..40c45d4c
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,80 @@
+stages:
+- test
+- review
+
+variables:
+ BUNDLE: "org.gnome.Shotwell.Devel.flatpak"
+ GIT_SUBMODULE_STRATEGY: recursive
+
+flatpak:
+ image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+ stage: test
+ variables:
+ MANIFEST_PATH: "flatpak/org.gnome.Shotwell.json"
+ RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
+ # Replace with your application name, as written in the manifest
+ FLATPAK_MODULE: "shotwell"
+ # Make sure to keep this in sync with the Flatpak manifest, all arguments
+ # are passed except the config-args because we build it ourselves
+ CONFIGURE_ARGS: "-Dudev=false -Dinstall-apport-hook=false -Dface-detection=true"
+ DBUS_ID: "org.gnome.Shotwell"
+
+ script:
+ - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
+
+ # Make sure to keep this in sync with the Flatpak manifest, all arguments
+ # are passed except the config-args because we build it ourselves
+ - flatpak build app meson --prefix=/app ${CONFIGURE_ARGS} _build
+ - flatpak build app ninja -C _build install
+
+ - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
+
+ # Run automatic tests inside the Flatpak env
+ #- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
+ - flatpak build app ninja -C _build test
+
+ # Generate a Flatpak bundle
+ - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
+
+ artifacts:
+ paths:
+ - ${BUNDLE}
+ - _build/meson-logs/meson-log.txt
+ - _build/meson-logs/testlog.txt
+ expire_in: 2 days
+ cache:
+ paths:
+ - .flatpak-builder/downloads
+ - .flatpak-builder/git
+
+review:
+ stage: review
+ dependencies:
+ - flatpak
+ script:
+ - echo "Generating flatpak deployment"
+ artifacts:
+ paths:
+ - ${BUNDLE}
+ expire_in: 30 days
+ environment:
+ name: review/$CI_COMMIT_REF_NAME
+ url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
+ on_stop: stop_review
+ except:
+ - master@GNOME/shotwell
+ - tags
+ - shotwell-.*
+
+stop_review:
+ stage: review
+ script:
+ - echo "Stopping flatpak deployment"
+ when: manual
+ environment:
+ name: review/$CI_COMMIT_REF_NAME
+ action: stop
+ except:
+ - master@GNOME/shotwell
+ - tags
+ - shotwell-.*
diff --git a/flatpak/org.gnome.Shotwell.json b/flatpak/org.gnome.Shotwell.json
index 22565bf1..909c2ec1 100644
--- a/flatpak/org.gnome.Shotwell.json
+++ b/flatpak/org.gnome.Shotwell.json
@@ -1,7 +1,7 @@
{
"app-id" : "org.gnome.Shotwell",
"runtime" : "org.gnome.Platform",
- "runtime-version" : "3.30",
+ "runtime-version" : "master",
"sdk" : "org.gnome.Sdk",
"command" : "shotwell",
"tags" : [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]