Add needs keyword

This commit is contained in:
Kay0u 2020-05-20 15:44:56 +02:00
parent de81a93498
commit 348d80664d
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 28 additions and 2 deletions

View file

@ -1,15 +1,26 @@
.install-stage:
stage: install
needs:
- job: build-yunohost
artifacts: true
- job: build-ssowat
artifacts: true
- job: build-moulinette
artifacts: true
########################################
# INSTALL DEB
########################################
upgrade:
stage: install
extends: .install-stage
image: "after-install"
script:
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb
install-postinstall:
stage: install
extends: .install-stage
image: "before-install"
script:
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb

View file

@ -12,6 +12,14 @@
paths:
- src/yunohost/tests/apps
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
needs:
- job: build-yunohost
artifacts: true
- job: build-ssowat
artifacts: true
- job: build-moulinette
artifacts: true
- job: upgrade
########################################
# TESTS
@ -29,6 +37,13 @@ full-tests:
- py.test tests
- cd src/yunohost
- py.test tests
needs:
- job: build-yunohost
artifacts: true
- job: build-ssowat
artifacts: true
- job: build-moulinette
artifacts: true
root-tests:
extends: .test-stage