diff options
author | Andre Arko <andre@arko.net> | 2010-10-16 10:00:55 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-10-16 14:07:34 -0700 |
commit | a17b9cd31886808f67e6b65ce2edf49b59c1208e (patch) | |
tree | e35969f6e91e5e3a0d66d5e5356ab185f0d0d717 /Rakefile | |
parent | 39288a39b5038e0f0d1243f275f71adb89ed9b10 (diff) | |
download | bundler-a17b9cd31886808f67e6b65ce2edf49b59c1208e.tar.gz |
Initial CI spec task
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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"] |