language: java
branches:
  only:
  - master
before_install: bash etc/travis-setup.sh
install: true
script: eval $TEST_CMD
after_script: heroku keys:remove $USER@`hostname`
env:
  global:
  - IS_RUNNING_ON_TRAVIS=true
  - HATCHET_RETRIES=3
  - HATCHET_DEPLOY_STRATEGY=git
  - HATCHET_BUILDPACK_BASE="https://github.com/heroku/heroku-buildpack-java.git"
  - HATCHET_APP_LIMIT=20
  - SHUNIT_HOME="/tmp/shunit2-2.1.6"
  matrix:
  - TEST_CMD='if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./mvnw verify; else echo "Skipping hatchet tests for third-party PR"; fi'
  - TEST_CMD="/tmp/testrunner/bin/run -c ."

language: java
jdk:
  - oraclejdk8
branches:
  only:
  - master
before_install: bash etc/travis-setup.sh
install: true
script: eval $TEST_CMD
after_script: heroku keys:remove $USER@`hostname`
env:
  global:
  - IS_RUNNING_ON_TRAVIS=true
  - HATCHET_RETRIES=3
  - HATCHET_DEPLOY_STRATEGY=git
  - HATCHET_BUILDPACK_BASE="https://github.com/heroku/heroku-buildpack-java.git"
  - HATCHET_APP_LIMIT=20
  - SHUNIT_HOME="/tmp/shunit2-2.1.6"
  matrix:
  - TEST_CMD='if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./mvnw verify; else echo "Skipping hatchet tests for third-party PR"; fi'
  - TEST_CMD="/tmp/testrunner/bin/run -c ."

Update Travis CI to ensure OracleJDK 8
Update Travis CI to ensure OracleJDK 8
