Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document workaround for slow JRuby installation on GCE #743

Merged
merged 1 commit into from
Mar 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions user/languages/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,28 @@ JRuby into account. Most of popular C extensions these days also have Java
implementations (json gem, nokogiri, eventmachine, bson gem) or Java
alternatives (like JDBC-based drivers for MySQL, PostgreSQL and so on).

### JRuby: Installation takes a long time on Standard and Trusty environments

In the [Standard and Trusty
environments](https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments),
installing JRuby can take several minutes.
This is due to the lack of entropy in the build VM, which can be
eradicated by installing an entropy daemon such as
[HAVEGED](http://www.issihosts.com/haveged/).

You can use [the `apt`
addon](https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon)
as follows:

language: ruby
rvm: jruby-9.1.5.0
sudo: required
dist: trusty
addons:
apt:
packages:
- haveged

## Default Test Script

Travis CI runs `rake` by default to execute your tests. Please note that **you
Expand Down