language: ruby

# cache: bundler
# We would like to enable travis' bundler cache (cache: bundler) but for some reason
# travis installs our bundle under the test directory (test/vendor/bundle/*) and, as a
# result, travis tries to run all of the tests of all of our dependencies!
# TODO: There's probably a way to configure the bundle path

before_install:
  - gem update bundler

rvm:
  - 2.1.9
  - 2.2.5
  - 2.3.1

gemfile:
  - test/gemfiles/Gemfile.rails-3.2.x
  - test/gemfiles/Gemfile.rails-4.0.x
  - test/gemfiles/Gemfile.rails-4.1.x
  - test/gemfiles/Gemfile.rails-4.2.x
  - test/gemfiles/Gemfile.rails-5.0.x

matrix:
  exclude:
    - rvm: 2.1.9
      gemfile: test/gemfiles/Gemfile.rails-5.0.x
    - rvm: 2.2.5
      gemfile: test/gemfiles/Gemfile.rails-3.2.x
    - rvm: 2.3.1
      gemfile: test/gemfiles/Gemfile.rails-3.2.x
  fast_finish: true

sudo: false

language: ruby

# cache: bundler
# We would like to enable travis' bundler cache (cache: bundler) but for some reason
# travis installs our bundle under the test directory (test/vendor/bundle/*) and, as a
# result, travis tries to run all of the tests of all of our dependencies!
# TODO: There's probably a way to configure the bundle path

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

rvm:
  - 2.1.9
  - 2.2.5
  - 2.3.1

gemfile:
  - test/gemfiles/Gemfile.rails-3.2.x
  - test/gemfiles/Gemfile.rails-4.0.x
  - test/gemfiles/Gemfile.rails-4.1.x
  - test/gemfiles/Gemfile.rails-4.2.x
  - test/gemfiles/Gemfile.rails-5.0.x

matrix:
  exclude:
    - rvm: 2.1.9
      gemfile: test/gemfiles/Gemfile.rails-5.0.x
    - rvm: 2.2.5
      gemfile: test/gemfiles/Gemfile.rails-3.2.x
    - rvm: 2.3.1
      gemfile: test/gemfiles/Gemfile.rails-3.2.x
  fast_finish: true

sudo: false

Update rubygems at start of CI
Update rubygems at start of CI

Per https://github.com/sickill/rainbow/issues/44
