27 lines
882 B
YAML
27 lines
882 B
YAML
dist: trusty
|
|
language: java
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Oracle JDK 8
|
|
jdk: oraclejdk8
|
|
- stage: AdoptOpenJDK 11.0.9
|
|
install:
|
|
- curl -L -o install-jdk.sh https://github.com/sormuras/bach/raw/master/install-jdk.sh
|
|
- source ./install-jdk.sh --target ./openjdk11 --url https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.9%2B11.1/OpenJDK11U-jdk_x64_linux_hotspot_11.0.9_11.tar.gz
|
|
|
|
before_script:
|
|
- java -version
|
|
- ./gradlew assemble
|
|
script:
|
|
- ./gradlew check -Plog-test-progress=true --stacktrace
|
|
before_cache:
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
|
|
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.lock
|
|
cache:
|
|
directories:
|
|
- $HOME/.gradle/caches/
|
|
- $HOME/.gradle/wrapper/
|