Skip to content

Commit

Permalink
Merge pull request #743 from travis-ci/ha-jruby-haveged
Browse files Browse the repository at this point in the history
Document workaround for slow JRuby installation on GCE
  • Loading branch information
plaindocs authored Mar 1, 2017
2 parents 9b5e6c4 + f775d7f commit 6e10e1d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions user/languages/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,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

0 comments on commit 6e10e1d

Please sign in to comment.