language: java
before_script:
  - psql -c "create database example_app;" -U postgres
  - psql -c "create user example_user with password 's3cr3t';" -U postgres
  - psql -d example_app -U postgres -f droptools-example/src/main/resources/db/migration/20141010__init.sql
  - psql -c "grant all on database example_app to example_user;" -U postgres
  - psql -c "grant all on all tables in schema ex to example_user" -d example_app -U postgres
install: echo 'mvn test will install dependencies for us'
script: mvn test
after_success: mvn -DperformRelease=true cobertura:cobertura coveralls:cobertura
jdk:
  - oraclejdk8
  - oraclejdk7
addons:
  postgresql: "9.3"

language: java
before_script:
  - psql -c "create database example_app;" -U postgres
  - psql -c "create user example_user with password 's3cr3t';" -U postgres
  - psql -d example_app -U postgres -f droptools-example/src/main/resources/db/migration/20141010__init.sql
  - psql -c "grant all on database example_app to example_user;" -U postgres
  - psql -c "grant all on all tables in schema ex to example_user" -d example_app -U postgres
install: echo 'mvn test will install dependencies for us'
script: mvn test
after_success: mvn -DperformRelease=true cobertura:cobertura coveralls:cobertura
jdk:
  - oraclejdk8
sudo: false
addons:
  postgresql: "9.3"

Kill JDK7 tests and use their containers.
Travis: Kill JDK7 tests and use their containers.