language: java
branches:
  only:
  - master
before_install:
- curl --silent https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz
  | tar xz -C /tmp/
- git clone https://github.com/heroku/heroku-buildpack-testrunner.git /tmp/testrunner
- "./etc/travis-setup.sh"
install: false
script: eval $TEST_CMD
after_script: heroku keys:remove $USER@`hostname`
env:
  global:
  - HATCHET_RETRIES=3
  - HATCHET_DEPLOY_STRATEGY=git
  - HATCHET_BUILDPACK_BASE="https://github.com/heroku/heroku-buildpack-gradle.git"
  - HATCHET_APP_LIMIT=2
  - SHUNIT_HOME="/tmp/shunit2-2.1.6"
  - secure: 426T7FQmTDl3nOfa+mNcvdwMm5jp46KqLZJDHbtwNeFP7eqxuhH5GLYXFY7oCKzaVRAXL+0M8dzqFUH8XJvldlb0HjQeTRlBt/dTVmfkPooUbZ9m09RYmGobjC1GqjW60VeZjxy9FKPTwyGNSJymTaEpVlr6tIYOaGarQ6rG0BA=
  matrix:
  - TEST_CMD='sh etc/hatchet-test.sh'
  - TEST_CMD="/tmp/testrunner/bin/run -c ."

language: java
branches:
  only:
  - master
before_install:
- curl --silent https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz
  | tar xz -C /tmp/
- git clone https://github.com/heroku/heroku-buildpack-testrunner.git /tmp/testrunner
- "./etc/travis-setup.sh"
install: false
script: eval $TEST_CMD
after_script: heroku keys:remove $USER@`hostname`
env:
  global:
  - HATCHET_RETRIES=3
  - HATCHET_DEPLOY_STRATEGY=git
  - HATCHET_BUILDPACK_BASE="https://github.com/heroku/heroku-buildpack-gradle.git"
  - HATCHET_APP_LIMIT=2
  - SHUNIT_HOME="/tmp/shunit2-2.1.6"
  - secure: z7Oc7f9+woaoIYpyssV8OXA5sWbyawls1WPutMebHFkjAVvbu2muXQ0KKesiQMZUwhVO45uaQquDiah8MJPfEa8TTDI3r5kvCPah3u/RU9NAd8aTnx893/CFScVU7I/KPbLG4g+dfwTzPHmEmWsDrA/ta61pyOaqrHFpsjWhSpo=
  matrix:
  - TEST_CMD='sh etc/hatchet-test.sh'
  - TEST_CMD="/tmp/testrunner/bin/run -c ."

Update api token for tests
Update api token for tests
