aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-10-16 10:00:55 -0700
committerAndre Arko <andre@arko.net>2010-10-16 14:07:34 -0700
commita17b9cd31886808f67e6b65ce2edf49b59c1208e (patch)
treee35969f6e91e5e3a0d66d5e5356ab185f0d0d717 /Rakefile
parent39288a39b5038e0f0d1243f275f71adb89ed9b10 (diff)
downloadbundler-a17b9cd31886808f67e6b65ce2edf49b59c1208e.tar.gz
Initial CI spec task
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 042755e5..48dda169 100644
--- a/Rakefile
+++ b/Rakefile
@@ -19,9 +19,14 @@ begin
t.rspec_opts = %w(-fs --color)
t.ruby_opts = %w(-w)
end
-
task :spec => :build
+ namespace :ci do
+ desc "Run specs without color"
+ RSpec::Core::RakeTask.new(:spec)
+ task :spec => :build
+ end
+
namespace :spec do
task :set_sudo do
ENV['BUNDLER_SUDO_TESTS'] = '1'
@@ -38,6 +43,12 @@ begin
desc "Run the spec suite with the sudo tests"
task :sudo => ["set_sudo", "clean", "spec"]
+ desc "Install dependencies to run the specs"
+ task :deps do
+ sh "gem install ronn --no-ri --no-rdoc"
+ sh "gem install rspec --pre --no-ri --no-rdoc"
+ end
+
namespace :rubygems do
# Rubygems 1.3.5, 1.3.6, and HEAD specs
rubyopt = ENV["RUBYOPT"]