forked from slackapi/java-slack-sdk
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.02 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
sudo: false
language: java
cache:
directories:
- $HOME/.m2
install:
- echo $JAVA_HOME
- echo 'skipped'
matrix:
# LTS version
- jdk: openjdk8
env:
- CODECOV="true"
- TRAVIS_JDK="openjdk8"
script: travis_retry ./scripts/run_no_prep_tests.sh
# LTS version
- jdk: openjdk11
env:
- CODECOV="false"
- TRAVIS_JDK="openjdk11"
- MAVEN_OPTS=-Djdk.tls.client.protocols=TLSv1.2
script: travis_retry ./scripts/run_no_prep_tests.sh
# non-LTS but latest
- jdk: openjdk14
env:
- CODECOV="false"
- TRAVIS_JDK="openjdk14"
script: travis_retry ./scripts/run_no_prep_tests.sh
# To detect duplicated classes
- jdk: openjdk11
env:
- CODECOV="false"
- TRAVIS_JDK="openjdk11"
script:
- travis_retry ./mvnw install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true --no-transfer-progress
- travis_retry ./mvnw duplicate-finder:check --no-transfer-progress
after_success:
- test "$CODECOV" = "true" && bash <(curl -s https://codecov.io/bash)