Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 514bebe

Browse files
committed
Setting JRUBY_OPTS without cext.enabled or --2.0
https://travis-ci.org/rspec/rspec-support/jobs/45770207#L544 See travis-ci/travis-ci#3067 Per http://docs.travis-ci.com/user/ci-environment/ Travis sets JRUBY_OPTS="--server -Dcext.enabled=false -Xcompile.invokedynamic=false" but current JRuby throws warnings when passed -Dcext.enabled Until that is fixed, it is sensible to just set JRUBY_OPTS="--server -Xcompile.invokedynamic=false" It's common to modify JRUBY_OPTS in travis projects, and in fact script/functions.sh modimodimodimodifies it! # idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html export JRUBY_OPTS="${JRUBY_OPTS} -X-C" # disable JIT since these processes are so short lived Use -Xcompat.version=2.0 per `jruby --properties` in place of `--2.0`, which wasn't being respected
1 parent b4b191e commit 514bebe

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,24 @@ rvm:
2222
- 2.2
2323
- ruby-head
2424
- ree
25-
- jruby-18mode
26-
- jruby
27-
- jruby-head
2825
- rbx
2926
matrix:
3027
include:
3128
- rvm: jruby
32-
env: JRUBY_OPTS='--2.0'
33-
allow_failures:
29+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false -Xcompat.version=2.0'
3430
- rvm: jruby-head
31+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
32+
# These two are temporary until https://github.com/travis-ci/travis-ci/issues/3067 is solved.
33+
- rvm: jruby-18mode
34+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
35+
- rvm: jruby
36+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
37+
allow_failures:
3538
- rvm: ruby-head
3639
- rvm: rbx
3740
# These two are temporary until https://github.com/travis-ci/travis-ci/issues/3067 is solved.
3841
- rvm: jruby-18mode
42+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
3943
- rvm: jruby
44+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
4045
fast_finish: true

0 commit comments

Comments
 (0)