sudo: false
language: ruby
rvm:
  - 2.2.6
  - 2.3.3
gemfile:
  - gemfiles/sprockets3.gemfile
  - gemfiles/sprockets4.gemfile
branches:
  only:
    - master
before_install:
  - 'gem update --system --no-doc'
after_script:
  - '[ ${TRAVIS_EVENT_TYPE} != "pull_request" ] && [ ${TRAVIS_BRANCH} = "master" ] && bundle exec codeclimate-test-reporter'

sudo: false
language: ruby
rvm:
  - 2.2.6
  - 2.3.3
gemfile:
  - gemfiles/sprockets3.gemfile
  - gemfiles/sprockets4.gemfile
branches:
  only:
    - master
before_install:
  - gem update --system 2.7.9 --no-doc
after_script:
  - '[ ${TRAVIS_EVENT_TYPE} != "pull_request" ] && [ ${TRAVIS_BRANCH} = "master" ] && bundle exec codeclimate-test-reporter'

Fix build failure due to RubyGems
Fix build failure due to RubyGems

Use rubygems v2 because rubygems v3 drops support of Ruby 2.2 or former.
ref. https://github.com/rubygems/rubygems/blob/v3.0.0/rubygems-update.gemspec#L32
