Skip to content

Commit 41da3f3

Browse files
committed
Disable rubygems on travis.
1 parent ee5a22e commit 41da3f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

travis/script/functions.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
88
SPECS_HAVE_RUN_FILE=specs.out
99
MAINTENANCE_BRANCH=`cat maintenance-branch`
1010

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+
1115
function clone_repo {
1216
if [ ! -d $1 ]; then # don't clone if the dir is already there
1317
travis_retry eval "git clone git://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH"
@@ -46,7 +50,7 @@ function run_cukes {
4650
else
4751
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
4852
# and PATH for those that are using `rspec` or `rake`.
49-
RUBYOPT="-I${PWD}/../bundle -rbundler/setup" \
53+
RUBYOPT="${RUBYOPT} -I${PWD}/../bundle -rbundler/setup" \
5054
PATH="${PWD}/bin:$PATH" \
5155
bin/cucumber --strict
5256
fi

0 commit comments

Comments
 (0)