Skip to content

Commit

Permalink
Run latest precompiled JRuby on CI only against ActionPack
Browse files Browse the repository at this point in the history
Uses latest precompiled JRuby so that
we don't spend time downloading versions Travis has
not already compiled. http://rubies.travis-ci.org/

Uses latest jdk: oraclejdk8
per
https://docs.travis-ci.com/user/build-environment-updates/2015-02-03/#Ruby-VM
and
https://docs.travis-ci.com/user/languages/ruby/#Supported-Ruby-Versions-and-RVM

Follows on work in #23927 which was reverted
26fe5fa

JRUBY_OPTS minimize GC, disable JIT, for max test speed
  - #16613
  - #17088

Have Rails use JRuby-compatible Rake 11.1
  - The Rake task was passing --verbose, an invalid option, to contemporary JRuby
  - ruby/rake#120
  - rails-api/active_model_serializers#1585
  - jruby/jruby#3653 (comment)

No advantage to directly mounting JRuby over installing from cache; both on S3
  - b2d5b33
  - f4fad04
  • Loading branch information
bf4 committed Mar 30, 2016
1 parent 4232f7e commit 3027970
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -29,6 +29,13 @@ rvm:
- 2.3.0
- ruby-head
matrix:
include:
# Latest compiled version in http://rubies.travis-ci.org
- rvm: jruby-9.0.5.0
jdk: oraclejdk8
env:
- "JRUBY_OPTS='--dev -J-Xmx1024M'"
- "GEM='ap'"
allow_failures:
- rvm: ruby-head
fast_finish: true
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -3,7 +3,7 @@ source 'https://rubygems.org'
gemspec

# We need a newish Rake since Active Job sets its test tasks' descriptions.
gem 'rake', '>= 10.3'
gem 'rake', '>= 11.1'

# This needs to be with require false to ensure correct loading order, as it has to
# be loaded after loading the test library.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -197,7 +197,7 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rake (10.5.0)
rake (11.1.1)
rb-fsevent (0.9.7)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
Expand Down

1 comment on commit 3027970

@jeremy
Copy link
Member

@jeremy jeremy commented on 3027970 Apr 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This build is routinely hanging and failing, e.g.

Any idea what's up with it, @bf4?

Please sign in to comment.