language: ruby

rvm:
  - jruby-19mode
  - jruby-9.0.5.0
  - jruby-head

matrix:
  allow_failures:
    - rvm: jruby-head

jdk:
  - openjdk7

sudo: false

# cache:
#   directories:
#     - $HOME/.m2/repository

env:
  global:
    - JAVA_OPTS="-Xmx512m"

before_install:
  - gem install bundler
  - gem update bundler

install: travis_retry bundle install

before_script:
  - unset RACK_ENV RAILS_ENV
  - bundle exec rake build

script:
  - bundle exec rake rubocop
  - bundle exec rake spec
  - cd integration-tests
  - travis_wait bundle exec rake spec:wildfly:setup
  - bundle exec rake spec:all

branches:
  only:
    - master

language: ruby

rvm:
  - jruby-19mode
  - jruby-9.0.5.0
  - jruby-head

matrix:
  include:
    - jdk: openjdk7
    - env: INTEG_SUITE="spec:disk spec:jar"
  allow_failures:
    - rvm: jruby-head

jdk:
  - openjdk8

env:
  matrix:
    - INTEG_SUITE=spec:all
  global:
    - JAVA_OPTS="-Xmx512m"

sudo: false

cache:
  directories:
    - $HOME/.m2/repository

before_install:
  - gem install bundler
  - gem update bundler

install: travis_retry bundle install

before_script:
  - unset RACK_ENV RAILS_ENV
  - bundle exec rake build

script:
  - bundle exec rake rubocop
  - bundle exec rake spec
  - cd integration-tests
  - travis_wait bundle exec rake spec:wildfly:setup
  - bundle exec rake $INTEG_SUITE

branches:
  only:
    - master

Update Travis CI config to run most tests on OpenJDK 8
Update Travis CI config to run most tests on OpenJDK 8
