forked from thoughtbot/continuous_sprinkles
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install rvm rubies; use example config
- Loading branch information
Showing
6 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
HOST = "ci.yourhost.com" | ||
RUBIES = %w(jruby-1.5.6 ree-1.8.7-2010.02 ruby-1.8.7-p174 ruby-1.9.2-p180) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package :rvm_rubies do | ||
description "Useful versions of Ruby within RVM" | ||
requires RUBIES.map { |version| "ruby_#{version}" } | ||
end | ||
|
||
RUBIES.each do |version| | ||
package "ruby_#{version}" do | ||
runner "sudo -u jenkins -H -i rvm install #{version}" | ||
verify do | ||
has_executable "/var/lib/jenkins/.rvm/rubies/#{version}/bin/ruby" | ||
end | ||
requires :build_essential | ||
end | ||
end | ||
|
||
package :build_essential do | ||
description "Essential compiler tools" | ||
apt "build-essential" | ||
verify do | ||
has_apt "build-essential" | ||
end | ||
end |