env:
  global:
    - CC_TEST_REPORTER_ID=abf0a371ff8851f13b563671914b195bb46f0997f0f93142e666d9acad08e22f

language: ruby

rvm:
  - 2.1
  - 2.2
  - 2.3
  - 2.4

before_install:
  - gem update bundler

install:
  - bundle install --jobs=3 --retry=3
  - gem install rubocop

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
  - rubocop
  - bundle exec rake

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

env:
  global:
    - CC_TEST_REPORTER_ID=abf0a371ff8851f13b563671914b195bb46f0997f0f93142e666d9acad08e22f

language: ruby

rvm:
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5

before_install:
  - gem update bundler

install:
  - bundle install --jobs=3 --retry=3
  - [[ ! `ruby --version` =~ ^ruby\ 2\.1 ]] && gem install rubocop

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
  - [[ ! `ruby --version` =~ ^ruby\ 2\.1 ]] && rubocop
  - bundle exec rake

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

Add Ruby 2.5 to the build matrix Don't install/run Rubocop for Ruby 2.1 (not supported)
Add Ruby 2.5 to the build matrix
Don't install/run Rubocop for Ruby 2.1 (not supported)
