1
+ # This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
2
+ # DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
+
1
4
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
2
5
source $SCRIPT_DIR /travis_functions.sh
3
6
source $SCRIPT_DIR /predicate_functions.sh
@@ -8,9 +11,11 @@ export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
8
11
SPECS_HAVE_RUN_FILE=specs.out
9
12
MAINTENANCE_BRANCH=` cat maintenance-branch`
10
13
11
- # Don't allow rubygems to pollute what's loaded. Also, things boot
12
- # faster without the extra load time of rubygems.
13
- export RUBYOPT=" --disable=gem"
14
+ # Don't allow rubygems to pollute what's loaded. Also, things boot faster
15
+ # without the extra load time of rubygems. Only works on MRI Ruby 1.9+
16
+ if is_mri_192_plus; then
17
+ export RUBYOPT=" --disable=gem"
18
+ fi
14
19
15
20
function clone_repo {
16
21
if [ ! -d $1 ]; then # don't clone if the dir is already there
@@ -47,6 +52,11 @@ function run_cukes {
47
52
# the bin/cucumber approach below. That approach is faster
48
53
# (as it avoids the bundler tax), so we use it on rubies where we can.
49
54
bundle exec cucumber --strict
55
+ elif is_jruby; then
56
+ # For some reason JRuby doesn't like our improved bundler setup
57
+ RUBYOPT=" -I${PWD} /../bundle -rbundler/setup" \
58
+ PATH=" ${PWD} /bin:$PATH " \
59
+ bin/cucumber --strict
50
60
else
51
61
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
52
62
# and PATH for those that are using `rspec` or `rake`.
0 commit comments