Spectral/.gitlab-ci.yml

59 lines
1.3 KiB
YAML
Raw Normal View History

2018-08-02 10:40:49 +00:00
stages:
2018-08-02 19:15:24 +00:00
- preparation
2018-08-02 10:40:49 +00:00
- build
2018-08-02 19:15:24 +00:00
- deploy
2018-08-02 19:32:54 +00:00
2018-08-02 19:15:24 +00:00
preparation-flatpak:
2018-08-02 20:22:26 +00:00
image: debian:latest
2018-08-02 19:15:24 +00:00
stage: preparation
2018-08-02 20:06:38 +00:00
before_script:
- mkdir tmp
2018-08-02 20:22:26 +00:00
- apt update
- apt install git
2018-08-02 19:15:24 +00:00
script:
2018-08-02 20:06:38 +00:00
- cd tmp
2018-08-02 19:15:24 +00:00
- git clone "https://$GIT_USERNAME:$GIT_PASSWORD@gitlab.com/b0/matrique-repo"
2018-08-02 20:06:38 +00:00
- cd ../
2018-08-02 20:20:23 +00:00
artifacts:
paths:
- tmp/
2018-08-02 19:32:54 +00:00
2018-08-02 10:40:49 +00:00
build-native:
image: rabits/qt:5.11-desktop
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-07-11 12:28:02 +00:00
- mkdir build && cd build
- qmake ../matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler
- make -j4
artifacts:
paths:
2018-08-02 10:40:49 +00:00
- build/
build-flatpak:
2018-08-02 19:01:33 +00:00
image: black0/flatpak
2018-08-02 10:40:49 +00:00
stage: build
2018-08-02 19:01:33 +00:00
before_script:
- git submodule update --init --recursive
2018-08-02 10:40:49 +00:00
script:
2018-08-02 19:01:33 +00:00
- gpg2 -v --import <(echo "$GPG_SECRET_KEY")
- cd flatpak
2018-08-02 20:06:38 +00:00
- flatpak-builder --repo=../tmp/matrique-repo/public build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2
2018-08-02 19:53:25 +00:00
- cd ../
2018-08-02 20:20:23 +00:00
artifacts:
paths:
- tmp/
2018-08-02 19:53:25 +00:00
2018-08-02 19:15:24 +00:00
deploy-flatpak:
2018-08-02 20:17:18 +00:00
image: alpine/git
2018-08-02 19:15:24 +00:00
stage: deploy
before_script:
- git config --global user.name "$GIT_NAME"
- git config --global user.email "$GIT_EMAIL"
script:
2018-08-02 20:06:38 +00:00
- cd tmp/matrique-repo
2018-08-02 19:01:33 +00:00
- git add -A
- git commit -m "$CI_COMMIT_MESSAGE"
2018-08-02 19:15:24 +00:00
- git push origin master