language: ruby
bundler_args: '-j4'

matrix:
  allow_failures:
    - gemfile: gemfiles/rails_edge.gemfile
    - rvm: ruby-head
  include:
    - rvm: 2.2
      gemfile: gemfiles/rails_4_2.gemfile
    - rvm: 2.3
      gemfile: gemfiles/rails_5_0.gemfile
    - rvm: 2.4
      gemfile: gemfiles/rails_5_1.gemfile
    - rvm: 2.5
      gemfile: gemfiles/rails_5_2.gemfile
    - rvm: 2.6
      gemfile: gemfiles/rails_6_0.gemfile
    - rvm: ruby-head
      gemfile: gemfiles/rails_edge.gemfile
  fast_finish: true

script:
  - bundle update rails
  - bundle exec rubocop
  - bundle exec rake db:migrate RAILS_ENV=test
  - bundle exec rspec

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

language: ruby
bundler_args: '-j4'

addons:
  chrome: stable

matrix:
  allow_failures:
    - gemfile: gemfiles/rails_edge.gemfile
    - rvm: ruby-head
  include:
    - rvm: 2.2
      gemfile: gemfiles/rails_4_2.gemfile
    - rvm: 2.3
      gemfile: gemfiles/rails_5_0.gemfile
    - rvm: 2.4
      gemfile: gemfiles/rails_5_1.gemfile
    - rvm: 2.5
      gemfile: gemfiles/rails_5_2.gemfile
    - rvm: 2.6
      gemfile: gemfiles/rails_6_0.gemfile
    - rvm: ruby-head
      gemfile: gemfiles/rails_edge.gemfile
  fast_finish: true

script:
  - bundle update rails
  - bundle exec rubocop
  - bundle exec rake db:migrate RAILS_ENV=test
  - bundle exec rspec

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

Add Chrome to Travis build
Add Chrome to Travis build
