harbour-Papocchio/.gitlab-ci.yml

65 lines
1.1 KiB
YAML
Raw Normal View History

2021-06-04 19:00:25 +03:00
stages:
- build
2021-06-08 00:16:19 +03:00
- test
2021-06-04 19:00:25 +03:00
- publish
.build:
stage: build
2021-06-08 00:16:19 +03:00
variables:
ARCH: armv7hl
SFOS_VERSION: "3.4.0.24"
image: coderus/sailfishos-platform-sdk:${SFOS_VERSION}
2021-06-04 19:00:25 +03:00
artifacts:
paths:
- "output/*"
script:
2021-06-08 00:16:19 +03:00
- mkdir output
2021-06-04 19:00:25 +03:00
- mkdir ~/build
- cp -r * ~/build
- pushd ~/build
2021-06-08 00:16:19 +03:00
- mb2 -t SailfishOS-$SFOS_VERSION-$ARCH build
2021-06-04 19:00:25 +03:00
- popd
2021-06-08 00:16:19 +03:00
- cp -v ~/build/RPMS/* output
2021-06-04 19:00:25 +03:00
only:
- merge_requests
- tags
2021-06-08 00:16:19 +03:00
build_armv7hl:
extends: .build
build_i486:
2021-06-04 19:00:25 +03:00
extends: .build
variables:
2021-06-08 00:16:19 +03:00
ARCH: i486
build_aarch64:
extends: .build
variables:
ARCH: aarch64
test:validate-rpms:
stage: test
image: registry.gitlab.com/whisperfish/sailo-rs/rpm-validator:latest
allow_failure: true
needs:
- build_armv7hl
- build_i486
- build_aarch64
script:
- rpmvalidation.sh output/*.rpm
only:
- merge_requests
- tags
2021-06-04 19:00:25 +03:00
publish:
2021-06-08 00:16:19 +03:00
image: inetprocess/gitlab-release
stage: publish
needs:
- build_armv7hl
- build_i486
- build_aarch64
only:
- tags
script:
- gitlab-release --message 'Release $CI_COMMIT_TAG' output/*