forked from stripe/stripe-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 1.37 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
sudo: required
language: java
addons:
hosts:
- short-hostname
hostname: short-hostname
jdk:
- openjdk7
- oraclejdk8
- oraclejdk9
before_install:
- mkdir -p $HOME/bin
- curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
- testspace config url $TS_ORG.testspace.com
# Work around missing crypto in openjdk7
- |
if [ "$TRAVIS_JDK_VERSION" == "openjdk7" ]; then
sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
fi
notifications:
email:
on_success: never
sudo: false
script:
- ./gradlew clean test
after_script:
- testspace [${TRAVIS_JDK_VERSION}]./build/test-results/test/TEST-*.xml{src/test/java/com/stripe}
- if [[ ${TRAVIS_JDK_VERSION} = "oraclejdk8" ]]; then
./gradlew jacocoTestReport;
testspace **/test/jacocoTestReport.xml;
fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/