Skip to content

Commit b14cc0d

Browse files
committed
Set bundler flags only if travis-ci present
1 parent 19d59e0 commit b14cc0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/script/functions.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ function run_spec_suite_for {
8585
echo "Running specs for $1"
8686
pushd ../$1
8787
unset BUNDLE_GEMFILE
88-
bundle_install_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`
88+
bundle_install_flags=""
89+
if [ -e .travis.yml ]; then
90+
bundle_install_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`
91+
fi
8992
travis_retry eval "(unset RUBYOPT; exec bundle install $bundle_install_flags)"
9093
run_specs_and_record_done
9194
popd

0 commit comments

Comments
 (0)