summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-04-25 14:39:14 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-04-25 14:39:14 +1000
commit0fbff616af30f74d07515ffb84c89f6a55af1f57 (patch)
tree2e520daf8bde05be954e0c990eda72a18c507e61
parentaa6dcef408284b39dc0001683c61c149a0578156 (diff)
downloadpuppet-0fbff616af30f74d07515ffb84c89f6a55af1f57.tar.gz
puppet-0fbff616af30f74d07515ffb84c89f6a55af1f57.tar.xz
puppet-0fbff616af30f74d07515ffb84c89f6a55af1f57.zip
Updates to CI tasks
-rw-r--r--Rakefile31
1 files changed, 9 insertions, 22 deletions
diff --git a/Rakefile b/Rakefile
index 39ec40168..9c2b708ef 100644
--- a/Rakefile
+++ b/Rakefile
@@ -160,31 +160,18 @@ task :unit do
sh "cd test; rake"
end
-namespace :ci do
+require 'rubygems'
+gem 'ci_reporter'
+require 'ci/reporter/rake/rspec'
+require 'ci/reporter/rake/test_unit'
+ENV['CI_REPORTS'] = 'results'
- desc "Run the CI prep tasks"
- task :prep do
- require 'rubygems'
- gem 'ci_reporter'
- require 'ci/reporter/rake/rspec'
- require 'ci/reporter/rake/test_unit'
- ENV['CI_REPORTS'] = 'results'
- end
+desc "Run CI Unit tests"
+task :ci_unit => ['ci:setup:testunit', :unit]
- desc "Run all CI tests"
- task :all => [:unit, :spec]
+desc "Run CI RSpec tests"
+task :ci_spec => ['ci:setup:rspec', :spec]
- desc "Run CI Unit tests"
- task :unit => [:prep, 'ci:setup:testunit'] do
- sh "cd test; rake test; exit 0"
- end
-
- desc "Run CI RSpec tests"
- task :spec => [:prep, 'ci:setup:rspec'] do
- sh "cd spec; rake all; exit 0"
- end
-
-end
desc "Send patch information to the puppet-dev list"
task :mail_patches do