language: ruby
before_install:
  - "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
  - rvm @global do gem uninstall bundler -a -x
  - rvm @global do yes | gem install bundler -v '< 2.0.0'
  - cd spec/rails-app && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/spec/rails-app/Gemfile bundle install && cd ../..
script: bundle exec rspec
rvm:
  - 2.6
  - 2.5
  - 2.4
  - 2.3
  - 2.2
  - ruby-head
matrix:
  allow_failures:
    - rvm:
      - ruby-head
      - 2.2
language: ruby
before_install:
  - "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
  - rvm @global do gem uninstall bundler -a -x
  - rvm @global do yes | gem install bundler -v '< 2.0.0'
  - cd spec/rails-app && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/spec/rails-app/Gemfile bundle install && cd ../..
script: bundle exec rspec
rvm:
  - 2.6
  - 2.5
  - 2.4
  - 2.3
  - 2.2
  - ruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: 2.2
Correct allow_failures format for Travis
Correct allow_failures format for Travis
