machine:
  ruby:
    version: 2.3.1
  java:
    version: oraclejdk8
  environment:
    JRUBY_OPTS: '--dev --debug'
    JRUBY: jruby-9.1.6.0

dependencies:
  pre:
    - echo rvm_autoupdate_flag=0 >> ~/.rvmrc
    - rvm install $JRUBY
  post:
    - rvm-exec $JRUBY bundle install

test:
  override:
    - rvm-exec $JRUBY bundle exec rake test
    - bundle exec rake test
