forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: java
sudo: false
dist: trusty
# Specify which branches/tags that we do not want to be built: r5.0.0-M5
branches:
except:
- /^r\d.*$/
matrix:
include:
# Java 9 (openjdk-9.0.1 fails with java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty)
- jdk: oraclejdk9
env: JDK_RELEASE='JDK 9'
install: echo "Don't let Travis CI execute './gradlew assemble' by default"
# Java 10
- env: JDK_RELEASE='JDK 10 Early-Access'
install: . ./src/install/install-jdk-10.sh
allow_failures:
- env: JDK_RELEASE='JDK 10 Early-Access'
script:
# Display Gradle, Groovy, JVM and other versions
- ./gradlew -version
# Build JUnit 5
- ./gradlew build --scan --stacktrace -Dkotlin.compiler.execution.strategy="in-process"
# Do not store unnecessary files from Gradle dependency cache
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
# Store Gradle dependency cache and Gradle Wrapper files for next execution
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/