language: ruby
install: gem install bundler
script: "bundle && bundle exec rake ci"

env:
  - JRUBY_OPTS="--server -J-Xms1500m -J-Xmx1500m -J-XX:+UseConcMarkSweepGC -J-XX:-UseGCOverheadLimit -J-XX:+CMSClassUnloadingEnabled"

rvm:
  - 2.2.2
  - jruby
  - jruby-head
  - rbx-2

matrix:
  fast_finish: true
  allow_failures:
    - rvm: jruby-head
    - rvm: rbx-2

language: ruby
install: gem install bundler
script: "bundle && bundle exec rake ci"

env:
  global:
    - JRUBY_OPTS="--server -J-Xms1500m -J-Xmx1500m -J-XX:+UseConcMarkSweepGC -J-XX:-UseGCOverheadLimit -J-XX:+CMSClassUnloadingEnabled"

rvm:
  - 2.2.2
  - jruby
  - jruby-head
  - rbx-2

matrix:
  fast_finish: true
  allow_failures:
    - rvm: jruby-head
    - rvm: rbx-2

Move JRUBY_OPTS to global env
Move JRUBY_OPTS to global env
