aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorPeter Suschlik <ps@neopoly.de>2014-08-21 15:57:27 +0200
committerPeter Suschlik <ps@neopoly.de>2014-08-25 08:27:22 +0200
commit107235722331f572fbe1e2a763c49acca08fc500 (patch)
treeeea98af170c27434babc8448c513226874482ebc /.travis.yml
parent5cdd02ddd4c09480ce22a8d338daa0722e75b7d3 (diff)
downloadrails-107235722331f572fbe1e2a763c49acca08fc500.tar.gz
rails-107235722331f572fbe1e2a763c49acca08fc500.tar.bz2
rails-107235722331f572fbe1e2a763c49acca08fc500.zip
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.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml17
1 files changed, 10 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 4c45265db0..3851070b41 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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