From 610aed6ead02c51e8575e2ebd8c263f376b256ea Mon Sep 17 00:00:00 2001 From: chocolateboy Date: Tue, 1 May 2018 19:00:39 +0100 Subject: [PATCH] Fix failing Travis builds: Work around an unresolved Travis/Bundler/RubyGems bug: * https://github.com/travis-ci/travis-ci/issues/8978 * https://github.com/travis-ci/travis-ci/issues/8969 Remove `dist: trusty` as that's the default: * https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming * https://blog.travis-ci.com/2017-08-31-trusty-as-default-status Use the recommended Rubinius version (rbx-3): * https://github.com/travis-ci/docs-travis-ci-com/pull/1534 Cache dependencies to speed up builds: * https://docs.travis-ci.com/user/caching/ Automatically choose the latest versions of 2.x (e.g. currently 2.4.4 for 2.4): * https://github.com/rvm/rvm/issues/4352#issuecomment-378675362 --- .gitignore | 1 + .travis.yml | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 14026c7..9921186 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ pkg/ *.rbc .bundle/ doc/ +/vendor/ diff --git a/.travis.yml b/.travis.yml index d04eca1..f585e3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,15 @@ sudo: false language: ruby -dist: trusty +cache: bundler rvm: - - 2.4.0 - - 2.5.1 - - jrub - - rbx + - 2.4 + - 2.5 + - jruby + - rbx-3 - ruby-head +before_install: + - gem update --system + - gem install bundler matrix: allow_failures: - - rvm: rbx + - rvm: rbx-3