sudo: false
language: ruby
rvm:
  - 2.0.0
  - 2.1.9
  - 2.2.5
  - 2.3.1
  - ruby-head
env:
  - "RAILS_VERSION=4.0"
  - "RAILS_VERSION=4.1"
  - "RAILS_VERSION=4.2"
  - "RAILS_VERSION=5.0"
matrix:
  allow_failures:
    - rvm: ruby-head
  exclude:
    - rvm: 2.0.0
      env: "RAILS_VERSION=5.0"
    - rvm: 2.1.9
      env: "RAILS_VERSION=5.0"
    - rvm: ruby-head
      env: "RAILS_VERSION=4.0"
    - rvm: ruby-head
      env: "RAILS_VERSION=4.1"
    - rvm: ruby-head
      env: "RAILS_VERSION=4.2"

bundler_args: "--jobs=3 --retry=3"
cache: bundler

before_install:
  - gem update bundler

after_success:
  - bundle exec codeclimate-test-reporter

sudo: false
language: ruby
rvm:
  - 2.0.0
  - 2.1.9
  - 2.2.5
  - 2.3.1
  - ruby-head
env:
  - "RAILS_VERSION=4.0.0"
  - "RAILS_VERSION=4.1.0"
  - "RAILS_VERSION=4.2.0"
  - "RAILS_VERSION=5.0.0"
matrix:
  allow_failures:
    - rvm: ruby-head
  exclude:
    - rvm: 2.0.0
      env: "RAILS_VERSION=5.0.0"
    - rvm: 2.1.9
      env: "RAILS_VERSION=5.0.0"
    - rvm: ruby-head
      env: "RAILS_VERSION=4.0.0"
    - rvm: ruby-head
      env: "RAILS_VERSION=4.1.0"
    - rvm: ruby-head
      env: "RAILS_VERSION=4.2.0"

bundler_args: "--jobs=3 --retry=3"
cache: bundler

before_install:
  - gem update bundler

after_success:
  - bundle exec codeclimate-test-reporter

Fix Rails build matrix version constraints
Fix Rails build matrix version constraints

We use the ~> operator, so one more version component needs to be specified. Otherwise, all the 4.0, 4.1, and 4.2 constraints all resolve to the latest Rails 4 release.
