forked from spockframework/spock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (50 loc) · 2.27 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
language: java
sudo: false # run on container-based infrastructure
before_install:
# Workaround limitation of OpenJDK <11 - https://bugs.openjdk.java.net/browse/JDK-8196141
- |
if [[ "$TRAVIS_JDK_VERSION" == "openjdk9" || "$TRAVIS_JDK_VERSION" == "openjdk10" ]]; then
mv "${JAVA_HOME}/lib/security/cacerts" "${JAVA_HOME}/lib/security/cacerts.jdk"
ln -s /etc/ssl/certs/java/cacerts "${JAVA_HOME}/lib/security/cacerts"
fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/user-id.txt.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -fr $HOME/.gradle/caches/*/scripts/
- rm -fr $HOME/.gradle/caches/*/scripts-remapped/
- rm -fr $HOME/.gradle/caches/*/fileHashes/
- rm -fr $HOME/.gradle/jars*
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
dist: precise # downgrade to avoid jdk7 SSL Bug https://github.com/docker-library/openjdk/issues/117
jdk:
- oraclejdk8
- openjdk10
- openjdk11
- openjdk12
env:
matrix:
- VARIANT=2.5
global:
# SIGNING_PASSWORD
- secure: "GBvPdDAaMfr0iAYHzVxhMIBVHFanEPY+69CbEFijbZjhv8h0FPvuLos2p1K5/hbmNkQ1Hd2+CHsm3ErvXQHXtpXn0HmKvzSP7pnPk83iRNVGPieasvfnKiSohZeEplkAK6kbK8sZbjJRUFqUZtwyPtWfs244rCOo++D3KtfggzQ="
# SONATYPE_OSS_PASSWORD
- secure: "Y2PbI07I8M8k1qkwN671HdcLPPpnjATWya/m4PDIICioXkkdJrQzpj5x57efAJEWx2upI8PpgGm8ekUd2F/6l1rq0n4DnGHwGTNe1PDAXUw5qFt66RnqrfIVh2eUvPuQk6bXczLV39GksqqD1T/HS6KofknXpHKzk/JeCiiGoxI="
# GITHUB_TOKEN
- secure: "kRjS+Wioim8dGEvTNMTPnizGVyhmMGGAAafhuX8hnBg0kcGN/Vtn77sUA+mk6r1ULQvL+2Dap2uGq19KbEenBQ63LCzBYNZ8CGCC9OEh5N4vOeXCxHu4duYw/uZR6kNI2h3kOdTBlxBMaRnofmAGwqyZPAvwUb2XkeA28ISKW7A="
- GRADLE_OPTS: "-Xmx768m -Xms256m -Xss1m"
install: true
# Undo _JAVA_OPTIONS environment variable (https://github.com/travis-ci/travis-ci/issues/8408)
before_script:
- _JAVA_OPTIONS=
script:
- ./gradlew --no-daemon --no-parallel --version
- ./gradlew --no-daemon --no-parallel travisCiBuild -Dvariant=$VARIANT --scan --stacktrace
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
slack:
secure: eOht23SFXh9MayI/vIiez6pWvwYw/D92d8gvbQvRWtL4EumgA7aRW52roSCayKBg8HzYFUdylFyD2d1P8cgHBhdvIwq/aMSVa/5EsJ4fTlwJJEhS3aTPdGQqgv8XdRrE9WJ8S/yp7LbZXbEpGKKUqsjLYkTDM7SQJUJmvLz0X00=