CI: dependencies -> needs

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-08-28 08:47:01 -06:00
rodzic e92bfd38bb
commit a91a81977f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 14 dodań i 32 usunięć

Wyświetl plik

@ -119,8 +119,7 @@ build:
artifacts: artifacts:
paths: paths:
- build - build
dependencies: needs: ["assemble"]
- assemble
test: test:
stage: test stage: test
@ -133,71 +132,59 @@ test:
- build - build
reports: reports:
junit: build/test-results/**/TEST-*.xml junit: build/test-results/**/TEST-*.xml
dependencies: needs: ["assemble"]
- assemble
compile against min JOSM: compile against min JOSM:
stage: test stage: test
script: script:
- ./gradlew compileJava_minJosm - ./gradlew compileJava_minJosm
dependencies: needs: ["assemble"]
- assemble
compile against latest JOSM: compile against latest JOSM:
stage: test stage: test
script: script:
- ./gradlew compileJava_latestJosm - ./gradlew compileJava_latestJosm
dependencies: needs: ["assemble"]
- assemble
build with java 11: build with java 11:
stage: test stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-11-josmplugin:latest image: registry.gitlab.com/josm/docker-library/openjdk-11-josmplugin:latest
script: script:
- ./gradlew build - ./gradlew build
dependencies:
- assemble with java 11
allow_failure: true # due to copy-paste-detection allow_failure: true # due to copy-paste-detection
needs: ["assemble with java 11"]
build with java 12: build with java 12:
stage: test stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-12-josmplugin:latest image: registry.gitlab.com/josm/docker-library/openjdk-12-josmplugin:latest
script: script:
- ./gradlew build - ./gradlew build
dependencies:
- assemble with java 12
allow_failure: true allow_failure: true
needs: ["assemble with java 12"]
build with java 13: build with java 13:
stage: test stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-13-josmplugin:latest image: registry.gitlab.com/josm/docker-library/openjdk-13-josmplugin:latest
script: script:
- ./gradlew build - ./gradlew build
dependencies:
- assemble with java 13
allow_failure: true allow_failure: true
needs: ["assemble with java 13"]
build with java 14: build with java 14:
stage: test stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-14-josmplugin:latest image: registry.gitlab.com/josm/docker-library/openjdk-14-josmplugin:latest
script: script:
- ./gradlew build - ./gradlew build
dependencies:
- assemble with java 14
allow_failure: true allow_failure: true
only: needs: ["assemble with java 14"]
- schedules
build with java 15: build with java 15:
stage: test stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-15-josmplugin:latest image: registry.gitlab.com/josm/docker-library/openjdk-15-josmplugin:latest
script: script:
- ./gradlew build - ./gradlew build
dependencies:
- assemble with java 15
allow_failure: true allow_failure: true
only: needs: ["assemble with java 15"]
- schedules
################ ################
# Deploy stage # # Deploy stage #
@ -214,8 +201,7 @@ build with java 15:
# - pip install git+https://github.com/transifex/transifex-client.git # - pip install git+https://github.com/transifex/transifex-client.git
# script: # script:
# - TX_TOKEN="$TRANSIFEX_TOKEN" tx push -s --no-interactive # - TX_TOKEN="$TRANSIFEX_TOKEN" tx push -s --no-interactive
# dependencies: # needs: ["assemble"]
# - build
# only: # only:
# - master # - master
@ -245,8 +231,7 @@ release:
git stage . git stage .
git commit -a -m "$commitMessage" git commit -a -m "$commitMessage"
git push origin pages git push origin pages
dependencies: needs: ["compile against min JOSM", "compile against latest JOSM", "build"]
- build
rules: rules:
- if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG != null && $CI_PIPELINE_SOURCE != "schedule"' - if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG != null && $CI_PIPELINE_SOURCE != "schedule"'
when: manual when: manual
@ -263,8 +248,7 @@ release hotfix:
mkdir -pv "pages/public/dist/$version" mkdir -pv "pages/public/dist/$version"
cp -v "build/dist/"* "build/tmp/jar/MANIFEST.MF" "pages/public/dist/$version" cp -v "build/dist/"* "build/tmp/jar/MANIFEST.MF" "pages/public/dist/$version"
- *push_pages_branch - *push_pages_branch
dependencies: needs: ["compile against min JOSM", "compile against latest JOSM", "build"]
- build
rules: rules:
- if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG != null && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH' - if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG != null && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
when: always when: always
@ -286,8 +270,7 @@ publish update site:
cp -v "build/dist/"* "pages/public/snapshot/${CI_COMMIT_REF_NAME}" cp -v "build/dist/"* "pages/public/snapshot/${CI_COMMIT_REF_NAME}"
cp -v "build/dist/mapwithai.jar" "pages/public/snapshot/${CI_COMMIT_REF_NAME}/mapwithai-dev.jar" cp -v "build/dist/mapwithai.jar" "pages/public/snapshot/${CI_COMMIT_REF_NAME}/mapwithai-dev.jar"
- *push_pages_branch - *push_pages_branch
dependencies: needs: ["compile against min JOSM", "compile against latest JOSM", "build"]
- build
rules: rules:
- if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_REF_NAME != null' - if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_REF_NAME != null'
when: always when: always
@ -300,8 +283,7 @@ publish to / GitLab.com packages:
script: script:
- ./gradlew publishAllPublicationsToGitlabRepository - ./gradlew publishAllPublicationsToGitlabRepository
- ./gradlew releaseToGitlab - ./gradlew releaseToGitlab
dependencies: needs: ["compile against min JOSM", "compile against latest JOSM", "build"]
- build
rules: rules:
- if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG != null && $CI_PIPELINE_SOURCE != "schedule"' - if: '$SSH_PRIVATE_DEPLOY_KEY != null && $CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_TAG != null && $CI_PIPELINE_SOURCE != "schedule"'
when: always when: always