language: ruby

script: bundle exec rake spec

rvm:
  - 2.0.0
  - 2.1
  - 2.2.4
  - ruby-head
gemfile:
  - gemfiles/Gemfile-rails.3.2.x
  - gemfiles/Gemfile-rails.4.0.x
  - gemfiles/Gemfile-rails.4.1.x
  - gemfiles/Gemfile-rails.4.2.x
  - gemfiles/Gemfile-rails.5.0.0.beta1

sudo: false

matrix:
  exclude:
    - rvm: ruby-head
      gemfile: gemfiles/Gemfile-rails.3.2.x
  allow_failures:
    - rvm: ruby-head

language: ruby

script: bundle exec rake spec

rvm:
  - 2.0.0
  - 2.1
  - 2.2.4
  - ruby-head
gemfile:
  - gemfiles/Gemfile-rails.3.2.x
  - gemfiles/Gemfile-rails.4.0.x
  - gemfiles/Gemfile-rails.4.1.x
  - gemfiles/Gemfile-rails.4.2.x
  - gemfiles/Gemfile-rails.5.0.0.beta1

sudo: false

matrix:
  exclude:
    - rvm: ruby-head
      gemfile: gemfiles/Gemfile-rails.3.2.x
    - rvm: 2.0.0
      gemfile: gemfiles/Gemfile-rails.5.0.0.beta1
    - rvm: 2.1
      gemfile: gemfiles/Gemfile-rails.5.0.0.beta1
  allow_failures:
    - rvm: ruby-head

Exclude rails 5 with ruby under 2.1 tests from Travis
Exclude rails 5 with ruby under 2.1 tests from Travis

Rails 5 Only Supports Ruby 2.2.2+.
