language: ruby

before_install:
  # https://github.com/danmayer/coverband/issues/162#issuecomment-452173268
  - rm /home/travis/.rvm/gems/*/specifications/bundler-2.*.gemspec || true
  - gem install bundler -v '<2'

bundler_args: --without development --jobs=3 --retry=3 --path=../vendor/bundle

cache: bundler

env:
  matrix:
    - JQUERY_VERSION=

rvm:
  - 2.5.5

gemfile:
  - gemfiles/rails_3.2.gemfile
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_6.0.gemfile

dist: trusty

sudo: false

matrix:
  include:
    - env: JQUERY_VERSION=2
      gemfile: gemfiles/rails_6.0.gemfile
    - env: JQUERY_VERSION=3
      gemfile: gemfiles/rails_6.0.gemfile
  fast_finish: true
