sudo: false
language: ruby
rvm:
  jruby-19mode
jdk:
  - openjdk7
  - oraclejdk7
  - openjdk6
cache: bundler
env:
  JDK_VERSION_FOR_CODECLIMATE: oraclejdk7
before_script:
  - if [ "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter; fi
script:
  - bundle exec rspec
  - if [ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi


sudo: false
language: ruby
rvm:
  jruby-19mode
jdk:
  - oraclejdk8
  - openjdk7
  - oraclejdk7
  - openjdk6
cache: bundler
env:
  JDK_VERSION_FOR_CODECLIMATE: oraclejdk7
  JRUBY_OPTS: "--debug"
before_script:
  - if [ "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter; fi
script:
  - bundle exec rspec
  - if [ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi


Add Oracle JDK 8 to the mix; switch --debug on
Add Oracle JDK 8 to the mix; switch --debug on

--debug for JRuby makes coverage reporting accurate
