language: ruby
rvm:
  - 2.0.0
  - 2.1
  - 2.2
  - 2.3.1
  - ruby-2.4.0-preview2
gemfile:
  - Gemfile.travis
script:
  - bundle exec rubocop
  - bundle exec rspec spec
sudo: false

language: ruby
rvm:
  - 2.0.0
  - 2.1
  - 2.2
  - 2.3.1
  - ruby-2.4.0
gemfile:
  - Gemfile.travis
script:
  - bundle exec rubocop
  - bundle exec rspec spec
sudo: false
before_install:
  - gem update --system
  - gem update bundler

Fix the build of Ruby 2.4 in Travis
Fix the build of Ruby 2.4 in Travis

* Switches from `ruby-2.4.0-preview2` to the final version
* Update Rubygems and Bundler to the latest version before running (to fix issue when building `rainbow`)
