language: ruby
rvm:
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - jruby-9.1.9.0

os:
  - linux
  - osx

cache:
  - bundler
  - directories:
    - /home/travis/.rvm/

language: ruby
rvm:
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - jruby-9.1.9.0

os:
  - linux
  - osx

before_install:
  - gem update --system
  - gem install bundler

cache:
  - bundler
  - directories:
    - /home/travis/.rvm/

Fix builds for Travis CI, especially for MRI 2.5
Fix builds for Travis CI, especially for MRI 2.5

https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-377680126

https://github.com/travis-ci/travis-ci/issues/8969#issuecomment-354135622
