File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ bundler_args: "--binstubs --path ../bundle --retry=3 --jobs=3"
23
23
before_install :
24
24
- script/update_rubygems_and_install_bundler
25
25
- script/clone_all_rspec_repos
26
+ - script/downgrade_bundler_on_old_rails
26
27
27
28
before_script :
28
29
# Rails 4+ complains with a bundler rails binstub in PROJECT_ROOT/bin/
@@ -84,4 +85,8 @@ matrix:
84
85
- rvm : 2.3.8
85
86
env : RAILS_VERSION='~> 5.0.0'
86
87
88
+ # Rails 4.2 REMOVE ME!
89
+ - rvm : 2.5.5
90
+ env : RAILS_VERSION='~> 4.2.0'
91
+
87
92
fast_finish : true
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments