Skip to content

Commit c76d667

Browse files
committed
fixup! Bring back bundler downgrading
downgrade_bundler_on_old_rails seems to trigger for JRuby builds, and if it doesn't it fails to install sassc on Rails 6 and fails yard check on Rails 5.2
1 parent c43051b commit c76d667

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ bundler_args: "--binstubs --path ../bundle --retry=3 --jobs=3"
2222

2323
before_install:
2424
- script/update_rubygems_and_install_bundler
25+
- script/downgrade_bundler_on_old_rails
2526
- script/clone_all_rspec_repos
2627

2728
before_script:

script/downgrade_bundler_on_old_rails

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
# This file was generated on 2019-01-03T20:34:23+00:00 from the rspec-dev repo.
3+
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4+
5+
set -e
6+
source script/functions.sh
7+
8+
if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
9+
# On Rails versions less than 5, Bundler 2.0 is not supported
10+
echo "Warning dowgrading to older version of Bundler"
11+
echo "Current bundler versions installed: `gem list | grep '^bundler ('`"
12+
13+
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
14+
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 ('`"
18+
19+
gem install bundler -v '1.17.3'
20+
fi

0 commit comments

Comments
 (0)