sudo: required
language: java
jdk:
  - oraclejdk8
services:
  - mysql
  - postgresql
  - docker
before_install:
  - docker-compose up -d
  - psql -U postgres < ./flyway-core/src/test/resources/migration/dbsupport/postgresql/createDatabase.sql
  - mysql --verbose -uroot < ./flyway-core/src/test/resources/migration/dbsupport/mysql/createDatabase.sql
  - echo "mariadb.url=jdbc:mariadb://localhost/flyway_maria_db" > ~/flyway-mediumtests.properties
  - wget -qO- https://binaries.cockroachdb.com/cockroach-v1.1-alpha.20170817.linux-amd64.tgz | tar  xvz
  - sudo cp -i cockroach-v1.1-alpha.20170817.linux-amd64/cockroach /usr/local/bin
  - cockroach start --insecure --host=localhost --background
  - cockroach node status --insecure
  - cockroach sql --insecure < ./flyway-core/src/test/resources/migration/dbsupport/cockroachdb/createDatabase.sql
  - echo "Waiting 4 minutes for databases to come up ..."
  - sleep 240
install: "sh ./mvnw install -P-CommercialDBTest,-CommandlinePlatformAssemblies"
before_script: echo OK
script: echo Done.
sudo: required
language: java
jdk:
  - oraclejdk8
services:
  - mysql
  - postgresql
  - docker
before_install:
  - docker-compose up -d
  - psql -U postgres < ./flyway-core/src/test/resources/migration/dbsupport/postgresql/createDatabase.sql
  - mysql --verbose -uroot < ./flyway-core/src/test/resources/migration/dbsupport/mysql/createDatabase.sql
  - echo "mariadb.url=jdbc:mariadb://localhost/flyway_maria_db" > ~/flyway-mediumtests.properties
  - wget -qO- https://binaries.cockroachdb.com/cockroach-v1.1-alpha.20170817.linux-amd64.tgz | tar  xvz
  - sudo cp -i cockroach-v1.1-alpha.20170817.linux-amd64/cockroach /usr/local/bin
  - cockroach start --insecure --host=localhost --background
  - cockroach node status --insecure
  - cockroach sql --insecure < ./flyway-core/src/test/resources/migration/dbsupport/cockroachdb/createDatabase.sql
  - echo "Waiting 4 minutes for databases to come up ..."
  - sleep 240
install: "sh ./mvnw install -P-CommercialDBTest,-CommandlinePlatformAssemblies -q -e"
before_script: echo OK
script: echo Done.
Reduce build output verbosity to avoid hitting TravisCI's 4MB limit
Reduce build output verbosity to avoid hitting TravisCI's 4MB limit
