[gnome-contacts/flatpak-ci] CI: build Flatpak.



commit f14652ddf519e85331a35ad13d635225c9bbf81b
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Apr 1 13:39:32 2018 +0200

    CI: build Flatpak.

 .gitlab-ci.yml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0216f62..b7d7c4e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,8 +5,33 @@
     - ninja -C build install
 
 stages:
+  - build-flatpak
   - build-os
 
+flatpak:master:
+  image: registry.gitlab.com/alatiera/gnome-nightly-oci/gnome-master:latest
+  stage: build-flatpak
+  script:
+    - flatpak-builder --stop-at=gnome-contacts app data/flatpak/org.gnome.Contacts.json
+    # 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 _build
+    - flatpak build app ninja -C _build install
+    - flatpak-builder --finish-only --repo=repo app data/flatpak/org.gnome.Contacts.json
+    # Make a Flatpak Contacts bundle for people to test
+    - flatpak build-bundle repo contacts-dev.flatpak 
--runtime-repo=https://sdk.gnome.org/gnome-nightly.flatpakrepo org.gnome.ContactsDevel
+    # TODO: Run automatic tests inside the Flatpak env
+    # - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
+  artifacts:
+    paths:
+      - contacts-dev.flatpak
+      - _build/meson-logs/meson-log.txt
+      - _build/meson-logs/testlog.txt
+      expire_in: 2 days
+  cache:
+    paths:
+      - .flatpak-builder/cache
+
 fedora:stable:
   image: fedora:27
   stage: build-os


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]