2018-08-02 10:40:49 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2018-08-02 23:23:14 +00:00
|
|
|
- deploy
|
|
|
|
|
2018-08-02 10:40:49 +00:00
|
|
|
build-native:
|
2018-08-12 07:02:17 +00:00
|
|
|
image: registry.gitlab.com/b0/matrique/qt
|
2018-07-11 11:16:28 +00:00
|
|
|
stage: build
|
2018-08-02 10:40:49 +00:00
|
|
|
before_script:
|
2018-07-11 12:28:02 +00:00
|
|
|
- git submodule update --init --recursive
|
2018-08-02 10:40:49 +00:00
|
|
|
script:
|
2018-08-02 23:23:14 +00:00
|
|
|
- mkdir -p build && cd build
|
2018-07-11 12:28:02 +00:00
|
|
|
- qmake ../matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler
|
|
|
|
- make -j4
|
2018-08-14 07:51:03 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build
|
2018-08-02 10:40:49 +00:00
|
|
|
|
|
|
|
build-flatpak:
|
2018-08-12 07:02:17 +00:00
|
|
|
image: registry.gitlab.com/b0/matrique/flatpak
|
2018-08-02 10:40:49 +00:00
|
|
|
stage: build
|
2018-08-02 23:23:14 +00:00
|
|
|
before_script:
|
|
|
|
- git submodule update --init --recursive
|
2018-08-02 10:40:49 +00:00
|
|
|
script:
|
2018-08-02 23:23:14 +00:00
|
|
|
- cd flatpak
|
2018-08-14 10:53:55 +00:00
|
|
|
- flatpak-builder --force-clean --repo=repo build-dir org.eu.encom.matrique.json
|
|
|
|
- flatpak build-bundle repo matrique.flatpak org.eu.encom.matrique
|
2018-08-02 23:23:14 +00:00
|
|
|
- cd ../
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-08-14 10:53:55 +00:00
|
|
|
- flatpak/matrique.flatpak
|
2018-08-02 23:23:14 +00:00
|
|
|
|
|
|
|
deploy-flatpak:
|
2018-08-14 07:51:30 +00:00
|
|
|
stage: deploy
|
2018-08-02 23:23:14 +00:00
|
|
|
only:
|
|
|
|
- master
|
2018-08-14 07:51:03 +00:00
|
|
|
tags:
|
|
|
|
- deploy-flatpak
|
2018-08-14 08:12:03 +00:00
|
|
|
dependencies: []
|
|
|
|
before_script:
|
|
|
|
- git submodule update --init --recursive
|
2018-08-02 23:23:14 +00:00
|
|
|
script:
|
2018-08-14 08:12:03 +00:00
|
|
|
- cd flatpak
|
|
|
|
- flatpak-builder --repo=/var/www/matrique-flatpak build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2
|