2019-09-14 14:25:04 +00:00
|
|
|
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
|
|
|
|
|
2019-09-14 23:56:36 +00:00
|
|
|
#############################
|
|
|
|
# Various additional Checks #
|
|
|
|
#############################
|
|
|
|
include:
|
|
|
|
- template: Code-Quality.gitlab-ci.yml
|
|
|
|
- template: SAST.gitlab-ci.yml
|
|
|
|
- template: Dependency-Scanning.gitlab-ci.yml
|
|
|
|
- template: Container-Scanning.gitlab-ci.yml
|
|
|
|
- template: DAST.gitlab-ci.yml
|
|
|
|
- template: License-Management.gitlab-ci.yml
|
2019-09-14 14:25:04 +00:00
|
|
|
|
|
|
|
###############
|
|
|
|
# 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 #
|
|
|
|
##############
|
|
|
|
|
2019-09-14 21:12:24 +00:00
|
|
|
#build:
|
|
|
|
# stage: test
|
|
|
|
# script:
|
|
|
|
# - ./gradlew build generatePot --stacktrace
|
|
|
|
# artifacts:
|
|
|
|
# paths:
|
|
|
|
# - build
|
|
|
|
# dependencies:
|
|
|
|
# - assemble
|
2019-09-14 14:25:04 +00:00
|
|
|
|
|
|
|
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
|
2019-09-20 02:59:33 +00:00
|
|
|
|
|
|
|
java:
|
|
|
|
stage: test
|
|
|
|
script:
|
2019-09-20 03:09:47 +00:00
|
|
|
- ./gradlew test
|
2019-09-20 02:59:33 +00:00
|
|
|
artifacts:
|
|
|
|
reports:
|
|
|
|
junit: build/test-results/test/**/TEST-*.xml
|