Speed up JRuby tests by improving its startup time

Emulate `jruby --dev` which improves JRuby's startup time.

See
https://github.com/jruby/jruby/wiki/Improving-startup-time#use-the---dev-flag

Follow @headius' idea and give Java more memory to reduce GC time.
This commit is contained in:
Peter Suschlik 2014-08-21 15:57:27 +02:00
parent 5cdd02ddd4
commit 1072357223
1 changed files with 10 additions and 7 deletions

View File

@ -10,13 +10,16 @@ rvm:
- rbx-2
- jruby
env:
- "GEM=railties"
- "GEM=ap"
- "GEM=am,amo,as,av,aj"
- "GEM=ar:mysql"
- "GEM=ar:mysql2"
- "GEM=ar:sqlite3"
- "GEM=ar:postgresql"
global:
- JRUBY_OPTS='-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Djruby.compile.mode=OFF -J-Djruby.compile.invokedynamic=false -J-Xmx1024M'
matrix:
- "GEM=railties"
- "GEM=ap"
- "GEM=am,amo,as,av,aj"
- "GEM=ar:mysql"
- "GEM=ar:mysql2"
- "GEM=ar:sqlite3"
- "GEM=ar:postgresql"
matrix:
allow_failures:
- rvm: 1.9.3