forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 1.15 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
44
45
46
47
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
os:
- linux
- osx
jdk:
- openjdk10
- openjdk-ea
env:
- JACOCO='-PenableJaCoCo'
- INSTALL='publishToMavenLocal'
matrix:
exclude:
- os: linux
jdk: openjdk-ea
env: JACOCO='-PenableJaCoCo'
- os: osx
jdk: openjdk-ea
env: JACOCO='-PenableJaCoCo'
script:
# Display Gradle, Groovy, JVM and other versions
- ./gradlew --version
# Build JUnit 5
- ./gradlew --scan --stacktrace --warning-mode=all ${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
- test -v INSTALL && ./gradlew --scan --stacktrace -Dplatform.tooling.support.tests.enabled=true build || true