forked from testng-team/testng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (34 loc) · 868 Bytes
/
.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
sudo: required
language: java
env:
global:
- GRADLE_OPTS=-Xmx512m
- CI=true
before_script:
- if [[ "x$JDK" == *'x9'* ]]; then remove_dir_from_path $JAVA_HOME/bin; export JAVA_HOME=/usr/lib/jvm/java-9-oracle; export PATH=$JAVA_HOME/bin:$PATH; java -Xmx32m -version; 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/
matrix:
fast_finish: true
allow_failures:
- env: JDK=9
include:
- jdk: oraclejdk8
- jdk: oraclejdk9
env: JDK=9
- jdk: oraclejdk7
dist: precise
- jdk: openjdk7
env: FLAVOR=openjdk
before_install:
- sh ./bin/openjdk7.sh
script:
- ./gradlew check --stacktrace --scan
after_success:
- ./travis.sh deploy
- ./travis.sh sonarqube