2018-03-23 00:54:00 -04:00
|
|
|
language: java
|
2018-05-16 01:34:36 -04:00
|
|
|
sudo: required
|
2018-03-23 00:54:00 -04:00
|
|
|
dist: trusty
|
2018-04-19 01:08:01 -04:00
|
|
|
|
2018-05-15 22:41:02 -04:00
|
|
|
services:
|
|
|
|
- postgresql
|
2018-05-16 01:34:36 -04:00
|
|
|
- docker
|
2018-05-15 22:41:02 -04:00
|
|
|
|
|
|
|
addons:
|
|
|
|
mariadb: '10.2'
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- psql -c 'create database test_db;' -U postgres || travis_terminate 1;
|
|
|
|
- mysql -u root -e 'CREATE DATABASE IF NOT EXISTS test_db;' || travis_terminate 1;
|
2018-05-16 01:34:36 -04:00
|
|
|
- docker pull microsoft/mssql-server-linux:2017-latest
|
|
|
|
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 -d microsoft/mssql-server-linux:2017-latest
|
2018-05-15 22:41:02 -04:00
|
|
|
|
2018-05-16 01:34:36 -04:00
|
|
|
script:
|
|
|
|
- docker ps -a
|
|
|
|
- mvn test -B '-DjdbcUrl1=jdbc:postgresql:test_db' '-DjdbcUrl2=jdbc:mariadb://127.0.0.1:3306/test_db?user=root' '-DjdbcUrl3=jdbc:sqlserver://localhost:1433;databaseName=master;username=sa;password=<YourStrong!Passw0rd>;'
|
2018-05-15 22:41:02 -04:00
|
|
|
|
2018-04-19 01:08:01 -04:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: JDK='OpenJDK 6'
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- openjdk-6-jdk
|
|
|
|
jdk: openjdk6
|
|
|
|
- env: JDK='OpenJDK 7'
|
|
|
|
jdk: openjdk7
|
|
|
|
- env: JDK='OpenJDK 8'
|
|
|
|
jdk: openjdk8
|
|
|
|
- env: JDK='OracleJDK 8'
|
|
|
|
jdk: oraclejdk8
|
|
|
|
- env: JDK='OpenJDK 9'
|
|
|
|
install: . ./install-jdk.sh -F 9 -L GPL
|
|
|
|
- env: JDK='OracleJDK 9'
|
|
|
|
jdk: oraclejdk9
|
|
|
|
- env: JDK='OpenJDK 10'
|
|
|
|
install: . ./install-jdk.sh -F 10 -L GPL
|
|
|
|
- env: JDK='OracleJDK 10'
|
|
|
|
install: . ./install-jdk.sh -F 10 -L BCL
|
|
|
|
- env: JDK='OpenJDK 11'
|
|
|
|
install: . ./install-jdk.sh -F 11 -L GPL
|
|
|
|
- env: JDK='OracleJDK 11'
|
|
|
|
install: . ./install-jdk.sh -F 11 -L BCL
|
|
|
|
|
2018-05-16 01:34:36 -04:00
|
|
|
before_install:
|
|
|
|
- wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
|
2018-03-23 00:54:00 -04:00
|
|
|
|
|
|
|
install:
|
2018-04-19 01:08:01 -04:00
|
|
|
- if [[ "${JDK}" == 'OpenJDK 6' ]]; then
|
2018-03-23 00:54:00 -04:00
|
|
|
export CUSTOM_MVN_VERION="3.2.5"
|
|
|
|
echo "Download Maven ${CUSTOM_MVN_VERION}....";
|
|
|
|
wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
|
|
|
|
unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
|
|
|
|
export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION};
|
|
|
|
export PATH=$M2_HOME/bin:$PATH;
|
|
|
|
mvn -version;
|
|
|
|
fi
|
|
|
|
|
|
|
|
after_success:
|
2018-04-19 01:08:01 -04:00
|
|
|
- if [ "${JDK}" == 'OpenJDK 8' ] || [ "${JDK}" == 'OpenJDK 6' ]; then
|
2018-03-23 00:54:00 -04:00
|
|
|
mvn deploy --settings .travis-settings.xml -DskipTests=true -B || travis_terminate 1;
|
|
|
|
fi
|
2018-05-15 06:50:50 -04:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.m2
|