Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit b91a276

Browse files
committed
Syncing older travis changes
1 parent abbbd37 commit b91a276

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

script/functions.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source $SCRIPT_DIR/travis_functions.sh
66
source $SCRIPT_DIR/predicate_functions.sh
77

88
# 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/
1010
export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
1111
SPECS_HAVE_RUN_FILE=specs.out
1212
MAINTENANCE_BRANCH=`cat maintenance-branch`
@@ -187,7 +187,10 @@ function run_all_spec_suites {
187187
fold "rspec-core specs" run_spec_suite_for "rspec-core"
188188
fold "rspec-expectations specs" run_spec_suite_for "rspec-expectations"
189189
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
191194

192195
if rspec_support_compatible; then
193196
fold "rspec-support specs" run_spec_suite_for "rspec-support"

script/predicate_functions.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ function is_ruby_23_plus {
7777
fi
7878
}
7979

80+
function rspec_rails_compatible {
81+
if is_ruby_23_plus; then
82+
return 0
83+
else
84+
return 1
85+
fi
86+
}
87+
8088
function rspec_support_compatible {
8189
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
8290
return 0

script/update_rubygems_and_install_bundler

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set -e
66
source script/functions.sh
77

88
if is_ruby_23_plus; then
9-
gem update --system
10-
gem install bundler
9+
yes | gem update --system
10+
yes | gem install bundler
1111
else
1212
echo "Warning installing older versions of Rubygems / Bundler"
1313
gem update --system '2.7.8'

0 commit comments

Comments
 (0)