diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2017-11-01 13:28:52 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2017-11-01 19:43:37 +0000 |
commit | 1944520627f59823ba98d5cf24f56591b622d670 (patch) | |
tree | 7fe0bb4a04f0b0895bf866a42738273a7fee6d71 | |
parent | a235b9f9d1656b6f47d1100f2fd07130ddaf1fa1 (diff) | |
download | rails-1944520627f59823ba98d5cf24f56591b622d670.tar.gz rails-1944520627f59823ba98d5cf24f56591b622d670.tar.bz2 rails-1944520627f59823ba98d5cf24f56591b622d670.zip |
Ignore "gem "bundler" cannot be uninstalled because it is a default gem" error
when tested with ruby-head
This pull request attempts to ignore the following error
when tested with ruby-head which has bundler as a default gem.
```ruby
$ rvm @global do gem uninstall bundler --all --ignore-dependencies --executables
ERROR: While executing gem ... (Gem::InstallError)
gem "bundler" cannot be uninstalled because it is a default gem
The command "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables" failed and exited with 1 during .
```
Refer https://travis-ci.org/rails/rails/jobs/295600391
This workaround should be removed once https://github.com/bundler/bundler/issues/6072 is addressed.
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 1a3890b7d9..ffb2e33282 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ bundler_args: --without test --jobs 3 --retry 3 before_install: - "rm ${BUNDLE_GEMFILE}.lock" - "travis_retry gem update --system" - - "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables" + - "rvm @global do gem uninstall bundler --all --ignore-dependencies --executables || true" - "travis_retry gem install bundler -v 1.15.4" - "[ -f /tmp/beanstalkd-1.10/Makefile ] || (curl -L https://github.com/kr/beanstalkd/archive/v1.10.tar.gz | tar xz -C /tmp)" - "pushd /tmp/beanstalkd-1.10 && make && (./beanstalkd &); popd" |