This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source $SCRIPT_DIR/travis_functions.sh
6
6
source $SCRIPT_DIR /predicate_functions.sh
7
7
8
8
# If JRUBY_OPTS isn't set, use these.
9
- # see http ://docs.travis-ci.com/user/ci-environment/
9
+ # see https ://docs.travis-ci.com/user/ci-environment/
10
10
export JRUBY_OPTS=${JRUBY_OPTS:- " --server -Xcompile.invokedynamic=false" }
11
11
SPECS_HAVE_RUN_FILE=specs.out
12
12
MAINTENANCE_BRANCH=` cat maintenance-branch`
@@ -187,7 +187,10 @@ function run_all_spec_suites {
187
187
fold " rspec-core specs" run_spec_suite_for " rspec-core"
188
188
fold " rspec-expectations specs" run_spec_suite_for " rspec-expectations"
189
189
fold " rspec-mocks specs" run_spec_suite_for " rspec-mocks"
190
- fold " rspec-rails specs" run_spec_suite_for " rspec-rails"
190
+
191
+ if rspec_rails_compatible; then
192
+ fold " rspec-rails specs" run_spec_suite_for " rspec-rails"
193
+ fi
191
194
192
195
if rspec_support_compatible; then
193
196
fold " rspec-support specs" run_spec_suite_for " rspec-support"
Original file line number Diff line number Diff line change @@ -77,6 +77,14 @@ function is_ruby_23_plus {
77
77
fi
78
78
}
79
79
80
+ function rspec_rails_compatible {
81
+ if is_ruby_23_plus; then
82
+ return 0
83
+ else
84
+ return 1
85
+ fi
86
+ }
87
+
80
88
function rspec_support_compatible {
81
89
if [ " $MAINTENANCE_BRANCH " != " 2-99-maintenance" ] && [ " $MAINTENANCE_BRANCH " != " 2-14-maintenance" ]; then
82
90
return 0
Original file line number Diff line number Diff line change 6
6
source script/functions.sh
7
7
8
8
if is_ruby_23_plus; then
9
- gem update --system
10
- gem install bundler
9
+ yes | gem update --system
10
+ yes | gem install bundler
11
11
else
12
12
echo " Warning installing older versions of Rubygems / Bundler"
13
13
gem update --system ' 2.7.8'
You can’t perform that action at this time.
0 commit comments