Build in parallel and RPM validation
This commit is contained in:
parent
d66bc39f8c
commit
8f46285cde
1 changed files with 41 additions and 31 deletions
|
@ -1,53 +1,63 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
.build:
|
.build:
|
||||||
stage: build
|
stage: build
|
||||||
allow_failure: true
|
variables:
|
||||||
image: "coderus/sailfishos-platform-sdk:${SFOS_VERSION}"
|
ARCH: armv7hl
|
||||||
|
SFOS_VERSION: "3.4.0.24"
|
||||||
|
image: coderus/sailfishos-platform-sdk:${SFOS_VERSION}
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "output/*"
|
- "output/*"
|
||||||
script:
|
script:
|
||||||
- sudo mkdir output
|
- mkdir output
|
||||||
- mkdir ~/build
|
- mkdir ~/build
|
||||||
- cp -r * ~/build
|
- cp -r * ~/build
|
||||||
- pushd ~/build
|
- pushd ~/build
|
||||||
- mb2 -t SailfishOS-$SFOS_VERSION-armv7hl build
|
- mb2 -t SailfishOS-$SFOS_VERSION-$ARCH build
|
||||||
- popd
|
- popd
|
||||||
- sudo cp -v ~/build/RPMS/* output
|
- cp -v ~/build/RPMS/* output
|
||||||
- rm -rf ~/build/*
|
|
||||||
- cp -r * ~/build
|
|
||||||
- pushd ~/build
|
|
||||||
- mb2 -t SailfishOS-$SFOS_VERSION-i486 build
|
|
||||||
- popd
|
|
||||||
- sudo cp -v ~/build/RPMS/* output
|
|
||||||
- rm -rf ~/build/*
|
|
||||||
- cp -r * ~/build
|
|
||||||
- pushd ~/build
|
|
||||||
- mb2 -t SailfishOS-$SFOS_VERSION-aarch64 build
|
|
||||||
- popd
|
|
||||||
- sudo cp -v ~/build/RPMS/* output
|
|
||||||
- ls -la output
|
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
- tags
|
- tags
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
build:
|
build_armv7hl:
|
||||||
|
extends: .build
|
||||||
|
|
||||||
|
build_i486:
|
||||||
extends: .build
|
extends: .build
|
||||||
variables:
|
variables:
|
||||||
SFOS_VERSION: "3.4.0.24"
|
ARCH: i486
|
||||||
|
|
||||||
|
build_aarch64:
|
||||||
|
extends: .build
|
||||||
|
variables:
|
||||||
|
ARCH: aarch64
|
||||||
|
|
||||||
|
test:validate-rpms:
|
||||||
|
stage: test
|
||||||
|
image: registry.gitlab.com/whisperfish/sailo-rs/rpm-validator:latest
|
||||||
|
needs:
|
||||||
|
- build_armv7hl
|
||||||
|
- build_i486
|
||||||
|
- build_aarch64
|
||||||
|
script:
|
||||||
|
- rpmvalidation.sh output/*.rpm
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: inetprocess/gitlab-release
|
image: inetprocess/gitlab-release
|
||||||
stage: publish
|
stage: publish
|
||||||
only:
|
needs:
|
||||||
- tags
|
- build_armv7hl
|
||||||
dependencies:
|
- build_i486
|
||||||
- build
|
- build_aarch64
|
||||||
script:
|
only:
|
||||||
- gitlab-release --message 'Release $CI_COMMIT_TAG' output/*
|
- tags
|
||||||
|
script:
|
||||||
|
- gitlab-release --message 'Release $CI_COMMIT_TAG' output/*
|
||||||
|
|
Loading…
Reference in a new issue