Permalink
Browse files

Install rvm rubies; use example config

  • Loading branch information...
1 parent 3ff4431 commit 201fba6a9bcc6be9541acd0ebf5a2dd86262150d @jferris jferris committed Mar 28, 2011
Showing with 32 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −1 README.md
  3. +2 −0 config.example.rb
  4. +0 −1 config.rb
  5. +2 −0 main.rb
  6. +22 −0 packages/rvm_rubies.rb
View
@@ -0,0 +1 @@
+config.rb
View
@@ -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
View
@@ -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)
View
@@ -1 +0,0 @@
-HOST = "192.168.56.101"
View
@@ -9,6 +9,7 @@
require 'packages/iptables'
require 'packages/rvm'
require 'packages/git'
+require 'packages/rvm_rubies'
deployment do
delivery :capistrano do
@@ -29,6 +30,7 @@
requires :ruby
requires :rubygems
requires :rvm
+ requires :rvm_rubies
requires :mysql
requires :postgres
requires :redis
@@ -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.