Skip to content

Commit 2a161e5

Browse files
authored
Merge pull request #195 from rspec/myron/ruby-2-5
Add Ruby 2.5 to travis build.
2 parents b998aa7 + 7e9ad15 commit 2a161e5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

travis/.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ cache:
55
directories:
66
- ../bundle
77
before_install:
8+
- gem update --system # https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-354036443
89
- unset _JAVA_OPTIONS
910
- "script/clone_all_rspec_repos"
1011
# Note this doesn't work on JRUBY 2.0.0 mode so we don't do it, the excluded versions are broken on Ruby 2.3
@@ -21,6 +22,7 @@ rvm:
2122
- 2.2.9
2223
- 2.3.6
2324
- 2.4.3
25+
- 2.5.0
2426
- ruby-head
2527
- ree
2628
- rbx-3

travis/script/functions.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ function run_spec_suite_for {
8080
pushd ../$1
8181
unset BUNDLE_GEMFILE
8282
bundle_install_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`
83-
if is_mri_192_plus; then
84-
travis_retry eval "RUBYOPT=$RUBYOPT:'--enable rubygems' bundle install $bundle_install_flags"
85-
else
86-
travis_retry eval "bundle install $bundle_install_flags"
87-
fi
83+
travis_retry eval "(unset RUBYOPT; exec bundle install $bundle_install_flags)"
8884
run_specs_and_record_done
8985
popd
9086
else

0 commit comments

Comments
 (0)