forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (36 loc) · 1.26 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
42
43
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.*$/
before_install:
# https://github.com/travis-ci/travis-ci/issues/8408
# Also interferes with platform-tooling-support-tests expectations
- unset _JAVA_OPTIONS
install:
- echo "Don't let Travis CI execute './gradlew assemble' by default"
matrix:
include:
- os: linux
jdk: openjdk10
- os: linux
jdk: openjdk-ea
- os: linux
jdk: openjdk10
env: SCAN='--scan --stacktrace --warning-mode=all' JACOCO='-PenableJaCoCo' INSTALL='publishToMavenLocal'
- os: osx
jdk: openjdk10
allow_failures:
- jdk: openjdk-ea
script:
# Display Gradle, Groovy, JVM and other versions
- ./gradlew --version
# Build JUnit 5
- ./gradlew ${SCAN} ${JACOCO} build ${INSTALL}
after_success:
# If variable JACOCO is set, run JaCoCo report and send report to codecov.io after build success
- test -v JACOCO && ./gradlew ${JACOCO} jacocoRootReport && bash <(curl -s https://codecov.io/bash) || true
# If variable INSTALL is set, run platform-tooling-support-tests checking the local installation
- test -v INSTALL && ./gradlew --scan --stacktrace -Dplatform.tooling.support.tests.enabled=true build || true