Add minimal flatpak CI.

This commit is contained in:
Black Hat 2018-08-02 18:40:49 +08:00
parent 8201475827
commit b1fba8a8db
2 changed files with 20 additions and 5 deletions

View File

@ -1,13 +1,26 @@
image: rabits/qt:5.11-desktop stages:
- build
build: build-native:
image: rabits/qt:5.11-desktop
stage: build stage: build
script: before_script:
- git submodule update --init --recursive - git submodule update --init --recursive
script:
- mkdir build && cd build - mkdir build && cd build
- qmake ../matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler - qmake ../matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler
- make -j4 - make -j4
artifacts: artifacts:
paths: paths:
- build/ - 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)

View File

@ -14,7 +14,9 @@
"--socket=wayland", "--socket=wayland",
"--device=dri", "--device=dri",
"--filesystem=home:rw", "--filesystem=home:rw",
"--filesystem=/tmp:rw" "--filesystem=/tmp:rw",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.kde.StatusNotifierWatcher"
], ],
"modules": [ "modules": [
{ {