language: ruby
rvm:
  - 2.2.9
  - 2.3.6
  - 2.4.3
  - 2.5.0
gemfile:
  - test/gemfiles/5.0.gemfile
  - test/gemfiles/5.1.gemfile
  - test/gemfiles/5.2.gemfile
before_install:
  - gem i rubygems-update -v '<3' && update_rubygems
  - gem install bundler -v 1.17.3 --no-document
script:
  - bundle exec rake test

matrix:
  include:
    # Bleeding edge Ruby
    - rvm: ruby-head
      gemfile: test/gemfiles/5.2.gemfile

    # Next version of Rails
    - rvm: 2.5.0
      gemfile: test/gemfiles/6.0.gemfile

    # Running one job to execute DANGER bot and linting
    - rvm: 2.5.0
      gemfile: test/gemfiles/5.2.gemfile
      script:
        - gem install danger
        - danger
        - bundle exec rake rubocop

  # allow_failures:
  #   - rvm: ruby-head
  #   - rvm: 2.5.0
  #     gemfile: test/gemfiles/6.0.gemfile

language: ruby
rvm:
  - 2.3.6
  - 2.4.3
  - 2.5.0
gemfile:
  - test/gemfiles/5.0.gemfile
  - test/gemfiles/5.1.gemfile
  - test/gemfiles/5.2.gemfile
before_install:
  - gem i rubygems-update -v '<3' && update_rubygems
  - gem install bundler -v 1.17.3 --no-document
script:
  - bundle exec rake test

matrix:
  include:
    # Bleeding edge Ruby
    - rvm: ruby-head
      gemfile: test/gemfiles/5.2.gemfile

    # Next version of Rails
    - rvm: 2.5.0
      gemfile: test/gemfiles/6.0.gemfile

    # Running one job to execute DANGER bot and linting
    - rvm: 2.5.0
      gemfile: test/gemfiles/5.2.gemfile
      script:
        - gem install danger
        - danger
        - bundle exec rake rubocop

  # allow_failures:
  #   - rvm: ruby-head
  #   - rvm: 2.5.0
  #     gemfile: test/gemfiles/6.0.gemfile

Remove Ruby 2.2 as too many gems need 2.3+
Remove Ruby 2.2 as too many gems need 2.3+
