language: scala
sudo: true
services:
  - mysql
  - postgresql
  - docker
before_install:
  - docker pull oracleinanutshell/oracle-xe-11g
  - docker pull topaztechnology/mssql-server-linux
  - docker run --name oracle -d -p 127.0.0.1:1521:1521 -e ORACLE_ALLOW_REMOTE=true oracleinanutshell/oracle-xe-11g
  - docker run --name sqlserver -d -p 127.0.0.1:1433:1433 -e DBCA_TOTAL_MEMORY=1024 -e ACCEPT_EULA=Y -e SQL_USER=docker -e SQL_PASSWORD=docker -e SQL_DB=docker topaztechnology/mssql-server-linux
  - docker inspect oracle
  - docker inspect sqlserver
  - docker ps -a
scala:
  - 2.11.12
  - 2.12.8
  - 2.13.0
jdk:
  - openjdk8
  - openjdk11
before_script:
  - psql -c 'create database docker;' -U postgres
addons:
  postgresql: "9.4"
script: "./build.sh"

before_cache:
  - find $HOME/.ivy2 -name "ivydata-*.properties" -delete
  - find $HOME/.sbt -name "*.lock" -delete

cache:
  directories:
   - $HOME/.m2
   - $HOME/.ivy2
   - $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION
   - $HOME/.sbt/launchers

language: scala
sudo: true
services:
  - mysql
  - postgresql
  - docker
before_install:
  - docker pull oracleinanutshell/oracle-xe-11g
  - docker pull topaztechnology/mssql-server-linux
  - docker run --name oracle -d -p 127.0.0.1:1521:1521 -e ORACLE_ALLOW_REMOTE=true oracleinanutshell/oracle-xe-11g
  - docker run --name sqlserver -d -p 127.0.0.1:1433:1433 -e DBCA_TOTAL_MEMORY=1024 -e ACCEPT_EULA=Y -e SQL_USER=docker -e SQL_PASSWORD=docker -e SQL_DB=docker topaztechnology/mssql-server-linux
  - docker inspect oracle
  - docker inspect sqlserver
  - docker ps -a
scala:
  - 2.12.8
  - 2.13.0
jdk:
  - openjdk8
  - openjdk11
before_script:
  - psql -c 'create database docker;' -U postgres
addons:
  postgresql: "9.4"
script: "./build.sh"

before_cache:
  - find $HOME/.ivy2 -name "ivydata-*.properties" -delete
  - find $HOME/.sbt -name "*.lock" -delete

cache:
  directories:
   - $HOME/.m2
   - $HOME/.ivy2
   - $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION
   - $HOME/.sbt/launchers

Build for Scala 2.12 and 2.13
Build for Scala 2.12 and 2.13
