mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-22 09:15:18 +00:00
CI: Add qmllint
This commit is contained in:
parent
1283c4ca66
commit
7ae46b6013
|
@ -1,27 +1,40 @@
|
||||||
variables: &variables
|
variables: &variables
|
||||||
SFOS_VERSION: 4.1.0.24
|
SFOS_VERSION: 4.1.0.24
|
||||||
|
BUILD_PATH: /home/mersdk/harbour-sailfin
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
|
|
||||||
image: coderus/sailfishos-platform-sdk:$SFOS_VERSION
|
image: coderus/sailfishos-platform-sdk:$SFOS_VERSION
|
||||||
|
default:
|
||||||
|
before_script:
|
||||||
|
- cp -a . $BUILD_PATH && cd $BUILD_PATH
|
||||||
|
|
||||||
.build: &build
|
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 -U \{\} +
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
.build:sfos: &build
|
||||||
stage: build
|
stage: build
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /home/mersdk/harbour-sailfin/RPMS/*
|
- $BUILD_PATH/RPMS/
|
||||||
script:
|
script:
|
||||||
- cp -a . /home/mersdk/harbour-sailfin && cd /home/mersdk/harbour-sailfin
|
|
||||||
- mb2 -t SailfishOS-$SFOS_VERSION-$MER_ARCH build
|
- mb2 -t SailfishOS-$SFOS_VERSION-$MER_ARCH build
|
||||||
|
|
||||||
build:armv7hl:
|
build:sfos:armv7hl:
|
||||||
variables:
|
variables:
|
||||||
<<: *variables
|
<<: *variables
|
||||||
MER_ARCH: armv7hl
|
MER_ARCH: armv7hl
|
||||||
<<: *build
|
<<: *build
|
||||||
|
|
||||||
build:aarch64:
|
build:sfos:aarch64:
|
||||||
variables:
|
variables:
|
||||||
<<: *variables
|
<<: *variables
|
||||||
MER_ARCH: aarch64
|
MER_ARCH: aarch64
|
||||||
|
|
Loading…
Reference in a new issue