Skip to content

Commit

Permalink
Install rvm rubies; use example config
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Mar 28, 2011
1 parent 3ff4431 commit 201fba6
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
config.rb
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -21,7 +21,11 @@ You need to install Sprinkle:

gem install sprinkle

Check out the Continuous Sprinkles repository, and edit config.rb to use your CI's host name. Then cd into the checked out Continuous Sprinkles repository, and run:
Check out the Continuous Sprinkles repository, copy the config.example.rb to config.rb, and edit config.rb to use your CI's host name:

HOST = 'ci.mydomain.com'

Then cd into the checked out Continuous Sprinkles repository, and run:

sprinkle -s main.rb

Expand Down
2 changes: 2 additions & 0 deletions config.example.rb
@@ -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)
1 change: 0 additions & 1 deletion config.rb

This file was deleted.

2 changes: 2 additions & 0 deletions main.rb
Expand Up @@ -9,6 +9,7 @@
require 'packages/iptables'
require 'packages/rvm'
require 'packages/git'
require 'packages/rvm_rubies'

deployment do
delivery :capistrano do
Expand All @@ -29,6 +30,7 @@
requires :ruby
requires :rubygems
requires :rvm
requires :rvm_rubies
requires :mysql
requires :postgres
requires :redis
Expand Down
22 changes: 22 additions & 0 deletions packages/rvm_rubies.rb
@@ -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

0 comments on commit 201fba6

Please sign in to comment.