You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HikariCP/.travis.yml

38 lines
1.0 KiB
YAML

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