language: ruby
cache: bundler

before_install:
  - gem update --system
  - gem update bundler

# We only test the oldest and the newest ruby versions that we support. We
# do not test intermediate versions.
rvm:
  - 2.3.8
  - 2.6.0

# We only test living versions of rails, per the [rails maintenance
# policy](http://guides.rubyonrails.org/maintenance_policy.html)
gemfile:
  - gemfiles/rails_5.2.rb
  - gemfiles/rails_6.0.rb

matrix:
  exclude:
    # rails 6 requires ruby >= 2.5.0
    - rvm: 2.3.8
      gemfile: gemfiles/rails_6.0.rb
  fast_finish: true

# We want to use `sudo: false` because the container infrastructure is supposed
# to be faster, but Travis is having issues with containers lately ..
#
# > No output has been received in the last 10m0s
#
# .. and they recommend we use the VM infrastructure (`sudo: required`) in
# the meantime.
sudo: required

language: ruby
cache: bundler

before_install:
  - gem update --system
  - gem update bundler

# We only test the oldest and the newest ruby versions that we support. We
# do not test intermediate versions.
rvm:
  - 2.3.8
  - 2.6.0

# We only test living versions of rails, per the [rails maintenance
# policy](http://guides.rubyonrails.org/maintenance_policy.html)
gemfile:
  - gemfiles/rails_5.2.rb
  - gemfiles/rails_6.0.rb

matrix:
  allow_failures:
    # Rails 6 is in beta and they're still making breaking changes.
    # When rails 6 final is released, we'll remove this `allow_failures`.
    - gemfile: gemfiles/rails_6.0.rb
  exclude:
    # rails 6 requires ruby >= 2.5.0
    - rvm: 2.3.8
      gemfile: gemfiles/rails_6.0.rb
  fast_finish: true

# We want to use `sudo: false` because the container infrastructure is supposed
# to be faster, but Travis is having issues with containers lately ..
#
# > No output has been received in the last 10m0s
#
# .. and they recommend we use the VM infrastructure (`sudo: required`) in
# the meantime.
sudo: required

Add rails 6 beta to allowed_failures
Add rails 6 beta to allowed_failures
