From b1fba8a8db4dc01b6a88e6a067ad9adff3407b77 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Thu, 2 Aug 2018 18:40:49 +0800 Subject: [PATCH] Add minimal flatpak CI. --- .gitlab-ci.yml | 21 +++++++++++++++++---- flatpak/org.eu.encom.matrique.json | 4 +++- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aebf153..10d2ebf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,26 @@ -image: rabits/qt:5.11-desktop +stages: + - build -build: +build-native: + image: rabits/qt:5.11-desktop stage: build - script: + before_script: - git submodule update --init --recursive + script: - mkdir build && cd build - qmake ../matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler - make -j4 artifacts: paths: - - build/ \ No newline at end of file + - build/ + +build-flatpak: + image: fedora:latest + stage: build + before-script: dnf install flatpak + script: + - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub + - flatpak install flathub org.kde.Platform//5.11 + - gpg2 -v --import <(echo $GPG_SECRET_KEY) + diff --git a/flatpak/org.eu.encom.matrique.json b/flatpak/org.eu.encom.matrique.json index 2946620..e9f4cd8 100644 --- a/flatpak/org.eu.encom.matrique.json +++ b/flatpak/org.eu.encom.matrique.json @@ -14,7 +14,9 @@ "--socket=wayland", "--device=dri", "--filesystem=home:rw", - "--filesystem=/tmp:rw" + "--filesystem=/tmp:rw", + "--talk-name=org.freedesktop.Notifications", + "--talk-name=org.kde.StatusNotifierWatcher" ], "modules": [ {