language: ruby
sudo: false
cache: bundler
install: true
before_install:
  - wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
  - tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
  - mv phantomjs-2.1.1-linux-x86_64 phantomjs
  - export PATH=$PWD/phantomjs/bin:$PATH
  - phantomjs --version
env:
  global:
    - JRUBY_OPTS="-Xcli.debug=true --debug --dev"
script:
  - 'if [[ "$TRAVIS_RUBY_VERSION" =~ "jruby" ]]; then rvm get head && rvm reload && rvm use --install $TRAVIS_RUBY_VERSION && gem install bundler; fi'
  - 'bundle install'
  - './script/ci'
rvm:
  - 2.2.5
  - 2.3.1
  - jruby-9.0.5.0
  - jruby-head
  - ruby-head

matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
    - rvm: jruby-9.0.5.0

language: ruby
sudo: false
cache: bundler
install: true
before_install:
  - wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
  - tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
  - mv phantomjs-2.1.1-linux-x86_64 phantomjs
  - export PATH=$PWD/phantomjs/bin:$PATH
  - phantomjs --version
env:
  global:
    - JRUBY_OPTS="-Xcli.debug=true --debug --dev"
script:
  - 'if [[ "$TRAVIS_RUBY_VERSION" =~ "jruby" ]]; then rvm get head && rvm reload && rvm use --install $TRAVIS_RUBY_VERSION && gem install bundler; fi'
  - 'bundle install'
  - './script/ci'
rvm:
  - 2.3.1
  - jruby-9.1.5.0
  - jruby-head
  - ruby-head

matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
    - rvm: jruby-9.1.5.0

Remove Ruby 2.2, bump JRuby to 9.1.5.0
Remove Ruby 2.2, bump JRuby to 9.1.5.0
