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 ############################# # 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 ############### # 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 java: stage: test script: - ./gradlew test artifacts: reports: junit: build/test-results/test/**/TEST-*.xml