language: ruby
before_install:
  - gem install bundler -v 1.17.3

matrix:
  include:
    - rvm: 2.5.1 # Pre-installed Ruby version
      script: bundle exec rake rubocop # ONLY lint once, first
    - rvm: 2.1
    - rvm: 2.2
    - rvm: 2.3.5
    - rvm: 2.4.6
    - rvm: 2.5.5
    - rvm: 2.6.3
    - rvm: jruby-9.1.8.0
      env:
        - JRUBY_OPTS="--debug"
      jdk: openjdk8
    - rvm: jruby-9.2.8.0
      env:
        - JRUBY_OPTS="--debug"

language: ruby
before_install:
  - gem install bundler -v 1.17.3

matrix:
  include:
    - rvm: 2.5.3 # Pre-installed Ruby version
      script: bundle exec rake rubocop # ONLY lint once, first
    - rvm: 2.1
    - rvm: 2.2
    - rvm: 2.3.5
    - rvm: 2.4.6
    - rvm: 2.5.5
    - rvm: 2.6.3
    - rvm: jruby-9.1.8.0
      env:
        - JRUBY_OPTS="--debug"
      jdk: openjdk8
    - rvm: jruby-9.2.8.0
      env:
        - JRUBY_OPTS="--debug"

Update default CI ruby version
Update default CI ruby version

The point of this initial build is to be fast and to run rubocop by
using the default, without building a ruby version. However, since the
default version has now changed, we're always building a ruby version
for that check.

The default version can be seen here:

  https://docs.travis-ci.com/user/reference/xenial/#ruby-support
