forked from remkop/picocli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (67 loc) · 1.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
env:
global:
# for CodeClimate
- CC_TEST_REPORTER_ID=83a2e05f875e3a67f60a1969f20a558a3de03a7592052c8bf52807d0e317f01a
os:
- linux
- osx
language: java
jdk:
- oraclejdk8
- oraclejdk11
- oraclejdk-ea
- openjdk7
- openjdk8
- openjdk9
- openjdk10
- openjdk11
- openjdk12
- openjdk13
- openjdk14
- openjdk15
- openjdk-ea
# - oraclejdk7
# $ jdk_switcher use oraclejdk7
# Switching to Oracle JDK7 (java-7-oracle), JAVA_HOME will be set to /usr/lib/jvm/java-7-oracle
# update-java-alternatives: directory does not exist: /usr/lib/jvm/java-7-oracle
# ...
# ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-7-oracle
#
# - openjdk6 # gradle 3.1 requires java 7
matrix:
exclude:
- os: macos
jdk: oraclejdk8
- os: macos
jdk: openjdk7
- os: macos
jdk: openjdk8
- os: macos
jdk: openjdk9
- os: macos
jdk: openjdk10
allow_failures:
- jdk: oraclejdk-ea
- jdk: openjdk7
- jdk: oraclejdk8
- jdk: oraclejdk11
- jdk: openjdk-ea
# - openjdk7 # Disabled to avoid error java.security.NoSuchProviderException: no such provider: SunEC...
install: skip
before_script:
- chmod +x gradlew
# for CodeClimate
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter &&
chmod +x ./cc-test-reporter &&
./cc-test-reporter before-build
fi
script:
- ./gradlew check --info --stacktrace
after_success:
- bash <(curl -s https://codecov.io/bash)
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi