aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorEvan Phoenix <ephoenix@engineyard.com>2011-04-18 14:56:21 -0700
committerEvan Phoenix <ephoenix@engineyard.com>2011-04-18 15:16:54 -0700
commit5f4a8f3c7184237cb5ce4c0045b59178706b4e68 (patch)
tree069a0251ba98d1d2b8b93a236cc72232cc4f9b01 /Rakefile
parent8b2649eb89ac4d28d0f3c21fdadb7bcc23d457eb (diff)
downloadbundler-5f4a8f3c7184237cb5ce4c0045b59178706b4e68.tar.gz
Phase 1 of rubygems/bundler reintegration
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index fba198d7..42b56919 100644
--- a/Rakefile
+++ b/Rakefile
@@ -76,12 +76,26 @@ begin
system("git checkout #{rg}")
system("git pull origin master") if rg == "master"
end
+ puts "Running bundler specs against rubygems '#{rg}'"
ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems/lib")} #{rubyopt}"
end
task rg => "clone_rubygems_#{rg}"
task "rubygems:all" => rg
end
+
+ desc "Run specs under a Rubygems checkout (set RG=path)"
+ RSpec::Core::RakeTask.new("co") do |t|
+ t.rspec_opts = %w(-fs --color)
+ t.ruby_opts = %w(-w)
+ end
+
+ task "setup_co" do
+ ENV["RUBYOPT"] = "-I#{File.expand_path ENV['RG']} #{rubyopt}"
+ end
+
+ task "co" => "setup_co"
+ task "rubygems:all" => "co"
end
namespace :ruby do