1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-10-31 23:25:18 +00:00
harbour-sailfin/.gitlab-ci.yml

42 lines
905 B
YAML
Raw Normal View History

2021-09-06 17:20:00 +00:00
variables: &variables
SFOS_VERSION: 4.1.0.24
2021-09-07 09:59:36 +00:00
BUILD_PATH: /home/mersdk/harbour-sailfin
2021-09-06 17:20:00 +00:00
stages:
2021-09-07 09:59:36 +00:00
- lint
2021-09-06 17:20:00 +00:00
- build
image: coderus/sailfishos-platform-sdk:$SFOS_VERSION
2021-09-07 09:59:36 +00:00
default:
before_script:
- cp -a . $BUILD_PATH && cd $BUILD_PATH
2021-09-06 17:20:00 +00:00
2021-09-07 09:59:36 +00:00
lint:sfos:qmllint:
stage: lint
script:
- sudo zypper --non-interactive install qt5-qtdeclarative-devel-tools
- cd sailfish/qml
# Find all files ending in .qml or .js and pass them as arguments to qmllint
- find -type f \( -name \*.qml -o -name \*.js \) -exec /usr/lib/qt5/bin/qmllint \{\} +
2021-09-07 09:59:36 +00:00
allow_failure: true
.build:sfos: &build
2021-09-06 17:20:00 +00:00
stage: build
artifacts:
paths:
2021-09-07 09:59:36 +00:00
- $BUILD_PATH/RPMS/
2021-09-06 17:20:00 +00:00
script:
- mb2 -t SailfishOS-$SFOS_VERSION-$MER_ARCH build
2021-09-07 09:59:36 +00:00
build:sfos:armv7hl:
2021-09-06 17:20:00 +00:00
variables:
<<: *variables
MER_ARCH: armv7hl
<<: *build
2021-09-07 09:59:36 +00:00
build:sfos:aarch64:
2021-09-06 17:20:00 +00:00
variables:
<<: *variables
MER_ARCH: aarch64
<<: *build