sudo: false
cache: bundler
language: ruby
matrix:
  include:
     - rvm: jruby-9.0.1.0
       env: JRUBY_OPTS='--debug' # get more accurate coverage data
     - rvm: 2.4.0 # Ruby 2.4.0 runs very slow, so let it start earlier
     - rvm: 2.0.0
     - rvm: 2.1.10
     - rvm: 2.2.6
     - rvm: 2.3.3
     - rvm: ruby-head
     - rvm: rbx-3
  allow_failures:
    - rvm: ruby-head
    - rvm: rbx-3
  fast_finish: true
before_install: gem update --remote bundler
install:
  - bundle install --retry=3
script:
  - bundle exec rake
  - bundle exec codeclimate-test-reporter
  # Running YARD under jruby crashes so skip checking manual under jruby
  - ruby -e "exit 1 unless RUBY_PLATFORM == 'java'" || bundle exec rake generate_cops_documentation
addons:
  code_climate:
    repo_token: a11b66bfbb1acdf220d5cb317b2e945a986fd85adebe29a76d411ad6d74ec31f

sudo: false
cache: bundler
language: ruby
matrix:
  include:
     - rvm: jruby-9.0.1.0
       env: JRUBY_OPTS='--debug' # get more accurate coverage data
     - rvm: 2.4.0 # Ruby 2.4.0 runs very slow, so let it start earlier
     - rvm: 2.0.0
     - rvm: 2.1.10
     - rvm: 2.2.6
     - rvm: 2.3.3
     - rvm: ruby-head
     - rvm: rbx-3
  allow_failures:
    - rvm: ruby-head
    - rvm: rbx-3
  fast_finish: true
before_install:
  - gem update --remote bundler
  - gem update --system
install:
  - bundle install --retry=3
script:
  - bundle exec rake
  - bundle exec codeclimate-test-reporter
  # Running YARD under jruby crashes so skip checking manual under jruby
  - ruby -e "exit 1 unless RUBY_PLATFORM == 'java'" || bundle exec rake generate_cops_documentation
addons:
  code_climate:
    repo_token: a11b66bfbb1acdf220d5cb317b2e945a986fd85adebe29a76d411ad6d74ec31f

Fix failing builds on Travis CI by using latest rubygems
Fix failing builds on Travis CI by using latest rubygems

Currently, builds are failing on Travis CI. e.g.) https://travis-ci.org/bbatsov/rubocop/jobs/194136460

The cause is from rubygems, and it has been fixed.

See also. https://github.com/sickill/rainbow/issues/48

Note
------

Builds seem to be failing for different reason in JRuby.
https://travis-ci.org/bbatsov/rubocop/jobs/194136459

This change hasn't fixed the problem.
