Spectral/.gitlab-ci.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

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-flatpak:
2019-04-29 13:28:22 +00:00
image: registry.gitlab.com/b0/flatpak-kde-docker
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
2019-04-29 13:28:22 +00:00
- flatpak-builder --force-clean --ccache --repo=repo build-dir org.eu.encom.spectral.yaml
- flatpak build-bundle repo spectral.flatpak org.eu.encom.spectral
2018-08-02 23:23:14 +00:00
- cd ../
2019-04-29 13:28:22 +00:00
cache:
2019-04-30 00:37:02 +00:00
key: "flatpak-$CI_COMMIT_REF_SLUG"
2019-04-29 13:28:22 +00:00
paths:
- flatpak/.flatpak-builder
2018-08-02 23:23:14 +00:00
artifacts:
paths:
- flatpak/spectral.flatpak
2018-10-14 02:26:50 +00:00
build-appimage:
2019-04-29 13:28:22 +00:00
image: registry.gitlab.com/b0/qt-docker
2018-10-14 02:26:50 +00:00
stage: build
before_script:
2018-10-14 05:15:58 +00:00
- git submodule update --init --recursive
2018-10-14 02:26:50 +00:00
script:
2019-04-29 13:28:22 +00:00
- mkdir -p ccache
- export CCACHE_BASEDIR=${CI_PROJECT_DIR}
- export CCACHE_DIR=${CI_PROJECT_DIR}/ccache
2019-02-02 13:05:47 +00:00
- /opt/qt512/bin/qt512-env.sh
2019-04-29 13:28:22 +00:00
- /opt/qt512/bin/qmake CONFIG+=debug CONFIG+=qml_debug CONFIG+=ccache PREFIX=/usr
2018-10-14 02:26:50 +00:00
- make
2018-10-19 03:52:53 +00:00
- make INSTALL_ROOT=appdir install
2019-02-02 13:05:47 +00:00
- /usr/bin/linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/org.eu.encom.spectral.desktop -appimage -qmldir=qml -qmldir=imports -qmake=/opt/qt512/bin/qmake
2019-04-29 13:28:22 +00:00
cache:
2019-04-30 00:37:02 +00:00
key: "appimage-$CI_COMMIT_REF_SLUG"
2019-04-29 13:28:22 +00:00
paths:
- ccache/
2018-10-14 02:26:50 +00:00
artifacts:
paths:
2019-02-03 03:47:05 +00:00
- Spectral*.AppImage