From a17b9cd31886808f67e6b65ce2edf49b59c1208e Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Sat, 16 Oct 2010 10:00:55 -0700 Subject: Initial CI spec task --- Rakefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Rakefile') 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"] -- cgit v1.2.3