language: java
jdk:
  - oraclejdk7
  - openjdk7
env:
  matrix:
    - MAVEN_PROFILE=arq-glassfish-embedded TEST_DATABASE=derby
    - MAVEN_PROFILE=arq-glassfish-embedded TEST_DATABASE=travis-mysql
    - MAVEN_PROFILE=arq-glassfish-embedded TEST_DATABASE=travis-postgres

before_script:
  - bash testutils/create_tables.sh

script: "mvn clean install test-compile surefire:test -P${MAVEN_PROFILE}"

branches:
  only:
    - master

language: java
jdk:
  - oraclejdk7
  - oraclejdk8
#  - openjdk7	# disabled, causes a java buffer overflow in the travis-ci env
env:
  matrix:
    - MAVEN_PROFILE=arq-glassfish-embedded TEST_DATABASE=derby
    - MAVEN_PROFILE=arq-glassfish-embedded TEST_DATABASE=travis-mysql
    - MAVEN_PROFILE=arq-glassfish-embedded TEST_DATABASE=travis-postgres

before_script:
  - bash testutils/create_tables.sh

script: "mvn clean install test-compile surefire:test -P${MAVEN_PROFILE}"

branches:
  only:
    - master

Add oraclejdk8; disable openjdk7 build (crashes java on Travis CI)
Add oraclejdk8; disable openjdk7 build (crashes java on Travis CI)

The tests run fine on openjdk7 on my Ubuntu 14.04 LTS, so I assume
it's a Travis CI issue.
