Skip to content

Commit ee5a22e

Browse files
committed
Merge pull request #115 from bf4/working_jruby_opts
For discussion: be explicit about JRuby opts
2 parents 80d7896 + 4834dc7 commit ee5a22e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

travis/.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@ rvm:
1919
- 2.2
2020
- ruby-head
2121
- ree
22-
- jruby-18mode
23-
- jruby
24-
- jruby-head
2522
- rbx
2623
matrix:
2724
include:
2825
- rvm: jruby
29-
env: JRUBY_OPTS='--2.0'
26+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false -Xcompat.version=2.0'
27+
- rvm: jruby-head
28+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
29+
- rvm: jruby-18mode
30+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
31+
- rvm: jruby
32+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
3033
allow_failures:
3134
- rvm: jruby-head
35+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
3236
- rvm: ruby-head
3337
- rvm: rbx
3438
fast_finish: true

travis/script/functions.sh

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

5-
# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
6-
export JRUBY_OPTS="${JRUBY_OPTS} -X-C" # disable JIT since these processes are so short lived
5+
# If JRUBY_OPTS isn't set, use these.
6+
# see http://docs.travis-ci.com/user/ci-environment/
7+
export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
78
SPECS_HAVE_RUN_FILE=specs.out
89
MAINTENANCE_BRANCH=`cat maintenance-branch`
910

0 commit comments

Comments
 (0)