MapWithAI/.gitlab-ci.yml

124 wiersze
2.4 KiB
YAML
Czysty Zwykły widok Historia

image: registry.gitlab.com/josm/docker-library/openjdk-8-josmplugin:latest
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
paths:
- .gradle/wrapper
- .gradle/caches
###############
# Build stage #
###############
assemble:
stage: build
script:
- ./gradlew assemble --stacktrace
artifacts:
paths:
- build/
assemble with java 10:
stage: build
image: registry.gitlab.com/josm/docker-library/openjdk-10-josmplugin:latest
script:
- ./gradlew assemble --stacktrace
artifacts:
paths:
- build/
assemble with java 11:
stage: build
image: registry.gitlab.com/josm/docker-library/openjdk-11-josmplugin:latest
script:
- ./gradlew assemble --stacktrace
artifacts:
paths:
- build/
assemble with java 12:
stage: build
image: registry.gitlab.com/josm/docker-library/openjdk-12-josmplugin:latest
script:
- ./gradlew assemble --stacktrace
artifacts:
paths:
- build/
allow_failure: true
assemble with java 13:
stage: build
image: registry.gitlab.com/josm/docker-library/openjdk-13-josmplugin:latest
script:
- ./gradlew assemble --stacktrace
artifacts:
paths:
- build/
allow_failure: true
##############
# Test stage #
##############
#build:
# stage: test
# script:
# - ./gradlew build generatePot --stacktrace
# artifacts:
# paths:
# - build
# dependencies:
# - assemble
compile against min JOSM:
stage: test
script:
- ./gradlew compileJava_minJosm
dependencies:
- assemble
compile against latest JOSM:
stage: test
script:
- ./gradlew compileJava_latestJosm
dependencies:
- assemble
build with java 10:
stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-10-josmplugin:latest
script:
- ./gradlew build --stacktrace
dependencies:
- assemble with java 10
build with java 11:
stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-11-josmplugin:latest
script:
- ./gradlew build --stacktrace
dependencies:
- assemble with java 11
build with java 12:
stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-12-josmplugin:latest
script:
- ./gradlew build --stacktrace
dependencies:
- assemble with java 12
allow_failure: true
build with java 13:
stage: test
image: registry.gitlab.com/josm/docker-library/openjdk-13-josmplugin:latest
script:
- ./gradlew build --stacktrace
dependencies:
- assemble with java 13
allow_failure: true