aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-02-01 15:04:03 -0800
committerCarl Lerche <carllerche@mac.com>2010-02-01 15:04:03 -0800
commit90ab1a6a4d0ed9ac18488c27fda42163a143f287 (patch)
treee1153cee17a63e60288c9aac49f624a9af6ddaa4
parentd74b5e440c04a1d89ae092cab7cb4d93d850f94a (diff)
downloadrails-90ab1a6a4d0ed9ac18488c27fda42163a143f287.tar.gz
rails-90ab1a6a4d0ed9ac18488c27fda42163a143f287.tar.bz2
rails-90ab1a6a4d0ed9ac18488c27fda42163a143f287.zip
[PATCH] remove geminstaller dependency from ci build
-rwxr-xr-xci/ci_build.rb11
-rw-r--r--ci/geminstaller.yml8
2 files changed, 5 insertions, 14 deletions
diff --git a/ci/ci_build.rb b/ci/ci_build.rb
index fca867afbe..064d593931 100755
--- a/ci/ci_build.rb
+++ b/ci/ci_build.rb
@@ -14,13 +14,12 @@ end
puts "[CruiseControl] Rails build"
build_results = {}
-# Requires gem home and path to be writeable and/or overridden to be ~/.gem,
-# Will enable when RubyGems supports this properly (in a coming release)
-# build_results[:geminstaller] = system 'geminstaller --exceptions'
+# Install rubygems-update, so 'gem update --system' in cruise_config.rb auto-installs it on next build.
+# This is how you can auto-update rubygems without logging in to CI system
+build_results[:geminstaller] = system "sudo gem install rubygems-update -v 1.3.5 --no-ri --no-rdoc"
-# for now, use the no-passwd sudoers approach (documented in ci_setup_notes.txt)
-# A security hole, but there is nothing valuable on rails CI box anyway.
-build_results[:geminstaller] = system "sudo geminstaller --config=#{root_dir}/ci/geminstaller.yml --exceptions"
+# Install required version of bundler.
+build_results[:geminstaller] = system "sudo gem install bundler -v 0.9.0.pre3 --prerelease --no-ri --no-rdoc"
cd root_dir do
puts
diff --git a/ci/geminstaller.yml b/ci/geminstaller.yml
deleted file mode 100644
index 1f1ecb49d4..0000000000
--- a/ci/geminstaller.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-gems:
-- name: geminstaller
- version: >= 0.4.3
-- name: rubygems-update
- version: >= 1.3.5
-- name: bundler
- version: >= 0.9.0.pre