Skip to content

Commit 1d56c29

Browse files
authored
Merge pull request #2170 from rspec/4-0-dev-log-ci-uninstall
Add log when downgrading bundler
2 parents afd6ea2 + d401812 commit 1d56c29

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ matrix:
8787
- rvm: 2.4.6
8888
env: RAILS_VERSION='~> 4.2.0'
8989
- rvm: 2.4.6
90-
env: RAILS_VERSION=4-2-stable
90+
env: RAILS_VERSION='~> 4.2.0'
9191
- rvm: 2.3.8
9292
env: RAILS_VERSION='~> 4.2.0'
9393
- rvm: 2.3.8
94-
env: RAILS_VERSION=4-2-stable
94+
env: RAILS_VERSION='~> 4.2.0'
9595

9696
fast_finish: true

script/downgrade_bundler_on_old_rails

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ source script/functions.sh
88
if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
99
# On Rails versions less than 5, Bundler 2.0 is not supported
1010
echo "Warning dowgrading to older version of Bundler"
11+
echo "Current bundler versions installed: `gem list | grep '^bundler ('`"
1112

1213
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
1314

14-
# this only works on Ruby 2.3 which is luckily the version we need to fix
15-
if is_ruby_23; then
16-
rvm @global do gem uninstall -aIx bundler || echo "Warning error occured removing bundler via rvm"
17-
fi
15+
rvm @global do gem uninstall -aIx bundler || echo "Warning error occured removing bundler via rvm"
16+
17+
echo "Bundler version list after uninstall: `gem list | grep '^bundler ('`"
1818

1919
gem install bundler -v '1.17.3'
2020
fi

0 commit comments

Comments
 (0)