sudo: false

language: java
jdk:
  - oraclejdk11

cache:
  directories:
  - $HOME/.m2

before_install:
  - echo 'Asia/Ho_Chi_Minh' | sudo tee /etc/timezone
  - sudo dpkg-reconfigure --frontend noninteractive tzdata
  - mysql -u root -e 'CREATE DATABASE test;'
  - psql -c 'CREATE DATABASE test;' -U postgres

after_script:

services:
  - mysql
  - postgresql
  
script:
  - mvn test -DskipTests=false -Dmysql.hostAndPort=localhost -Dmysql.user=root -Dmysql.pwd=""
  - mvn test -DskipTests=false -Dpgsql.hostAndPort=localhost -Dpgsql.user=postgres -Dpgsql.pwd=""

sudo: false

language: java
jdk:
  - oraclejdk8

cache:
  directories:
  - $HOME/.m2

before_install:
  - echo 'Asia/Ho_Chi_Minh' | sudo tee /etc/timezone
  - sudo dpkg-reconfigure --frontend noninteractive tzdata
  - mysql -u root -e 'CREATE DATABASE test;'
  - psql -c 'CREATE DATABASE test;' -U postgres

after_script:

services:
  - mysql
  - postgresql
  
script:
  - mvn test -DskipTests=false -Dmysql.hostAndPort=localhost -Dmysql.user=root -Dmysql.pwd=""
  - mvn test -DskipTests=false -Dpgsql.hostAndPort=localhost -Dpgsql.user=postgres -Dpgsql.pwd=""

Switch backto OpenJDK8 on Travis
Switch backto OpenJDK8 on Travis