forked from brettwooldridge/HikariCP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (30 loc) · 1 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
sudo: false
language: java
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
- if [[ "x$JDK" != *'x9'* ]]; then export COVERALLS=coveralls:report; fi
script:
- export JDK8_HOME=$(jdk_switcher home oraclejdk8)
- export JDK9_HOME=/usr/lib/jvm/java-9-oracle
- test -d "${JDK9_HOME}" || export JDK9_HOME=$(jdk_switcher home oraclejdk8)
before_cache:
# No sense in caching current build artifacts
- rm -rf $HOME/.m2/repository/com/zaxxer
cache:
directories:
- $HOME/.m2/repository
matrix:
fast_finish: true
include:
- jdk: oraclejdk8
- jdk: oraclejdk8 # this will be overridden by before_script above
addons:
apt:
packages:
- oracle-java9-installer
env:
- JDK=9
install: /bin/true
script:
- mvn package -Dskip.unit.tests=true -Dmaven.javadoc.skip=true -V -B
- mvn test $COVERALLS -V -P coverage