forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.38 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
39
40
41
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' EXTRA_GRADLE_ARGS='-PenableJaCoCo'
install: echo "Don't let Travis CI execute './gradlew assemble' by default"
# Java 10
- env: JDK_RELEASE='JDK 10 Early-Access' EXTRA_GRADLE_ARGS=''
install: . ./src/install/install-jdk-10.sh
script:
# Display Gradle, Groovy, JVM and other versions
- ./gradlew -version
# Build JUnit 5
- ./gradlew build $EXTRA_GRADLE_ARGS --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/
# Run clover report and send report to codecov after build success for JDK 9 builds
after_success:
- test "$JDK_RELEASE" = "JDK 9" && ./gradlew -PenableJaCoCo jacocoRootReport || true
- test "$JDK_RELEASE" = "JDK 9" && bash <(curl -s https://codecov.io/bash) || true