---

language: ruby

sudo: false

dist: trusty

bundler_args: --without development

cache: bundler

before_script:
  - unset _JAVA_OPTIONS

before_install:
  - PATH=$(npm bin):$PATH # needed to install phantomjs via npm
  - if [ $(phantomjs --version) != '2.1.1' ]; then npm install phantomjs-prebuilt@2.1; fi
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'

script:
  - bundle exec rake
  - bundle exec rake docs:build

rvm:
  - jruby-9.2.0.0
  - 2.4
  - 2.5.5
  - 2.6

gemfile:
  - gemfiles/rails_50.gemfile
  - gemfiles/rails_51.gemfile
  - gemfiles/rails_52.gemfile
  - gemfiles/rails_60.gemfile

env:
  global:
    - JRUBY_OPTS="-J-Xmx1024m --dev --debug"
    - COVERAGE=true

matrix:
  fast_finish: true

  exclude:
    - rvm: 2.4
      gemfile: gemfiles/rails_60.gemfile
    - rvm: 2.6
      gemfile: gemfiles/rails_42.gemfile

  allow_failures:
    - gemfile: gemfiles/rails_60.gemfile
    - rvm: jruby-9.2.0.0

---

language: ruby

sudo: false

dist: trusty

bundler_args: --without development

cache: bundler

before_script:
  - unset _JAVA_OPTIONS

before_install:
  - PATH=$(npm bin):$PATH # needed to install phantomjs via npm
  - if [ $(phantomjs --version) != '2.1.1' ]; then npm install phantomjs-prebuilt@2.1; fi
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'

script:
  - bundle exec rake
  - bundle exec rake docs:build

rvm:
  - jruby-9.2.0.0
  - 2.4
  - 2.5.5
  - 2.6

gemfile:
  - gemfiles/rails_60.gemfile
  - gemfiles/rails_50.gemfile
  - gemfiles/rails_51.gemfile
  - gemfiles/rails_52.gemfile

env:
  global:
    - JRUBY_OPTS="-J-Xmx1024m --dev --debug"
    - COVERAGE=true

matrix:
  fast_finish: true

  exclude:
    - rvm: 2.4
      gemfile: gemfiles/rails_60.gemfile
    - rvm: 2.6
      gemfile: gemfiles/rails_42.gemfile

  allow_failures:
    - rvm: jruby-9.2.0.0

Revert "Until Rails 6 and related dependencies out of beta allow failures."
Revert "Until Rails 6 and related dependencies out of beta allow failures."

This reverts commit 99f8884e792cc70b639d0f78887734bed744260d.
