Skip to content

Commit a1ee2a8

Browse files
committed
Use same JRUBY_OPTS as on Travis CI if not set
1 parent 87e7e86 commit a1ee2a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

travis/script/functions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
22
source $SCRIPT_DIR/travis_functions.sh
33
source $SCRIPT_DIR/predicate_functions.sh
44

5+
# If JRUBY_OPTS isn't set, use these.
6+
export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
57
# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
68
export JRUBY_OPTS="${JRUBY_OPTS} -X-C" # disable JIT since these processes are so short lived
79
SPECS_HAVE_RUN_FILE=specs.out

0 commit comments

Comments
 (0)