diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-05-20 15:42:01 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-05-20 15:44:10 +1000 |
commit | d39c4850904cc9b27110d753ddd94849bdec7644 (patch) | |
tree | 88ef290114fde82bba4d8d59b1dfbe736da44d84 | |
parent | e1a7f845cc543bd4c7fb852974d563e50db128dd (diff) | |
download | puppet-d39c4850904cc9b27110d753ddd94849bdec7644.tar.gz puppet-d39c4850904cc9b27110d753ddd94849bdec7644.tar.xz puppet-d39c4850904cc9b27110d753ddd94849bdec7644.zip |
Added spec and unit tests to the Rakefile files list and fixed CI rake tasks
-rw-r--r-- | Rakefile | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -14,7 +14,9 @@ FILES = FileList[ 'conf/**/*', 'man/**/*', 'examples/**/*', - 'ext/**/*' + 'ext/**/*', + 'test/**/*', + 'spec/**/*' ] spec = Gem::Specification.new do |spec| @@ -67,18 +69,24 @@ task :unit do sh "cd test; rake" end -require 'rubygems' -gem 'ci_reporter' -require 'ci/reporter/rake/rspec' -require 'ci/reporter/rake/test_unit' -ENV['CI_REPORTS'] = 'results' - -desc "Run CI Unit tests" -task :ci_unit => ['ci:setup:testunit', :unit] +desc "Prep CI RSpec tests" +task :ci_prep do + require 'rubygems' + begin + gem 'ci_reporter' + require 'ci/reporter/rake/rspec' + require 'ci/reporter/rake/test_unit' + ENV['CI_REPORTS'] = 'results' + rescue LoadError + puts 'Missing ci_reporter gem. You must have the ci_reporter gem installed to run the CI spec tests' + end +end -desc "Run CI RSpec tests" -task :ci_spec => ['ci:setup:rspec', :spec] +desc "Run the CI RSpec tests" +task :ci_spec => [:ci_prep, 'ci:setup:rpsec', :spec] +desc "Run CI Unit tests" +task :ci_unit => [:ci_prep, 'ci:setup:testunit', :unit] desc "Send patch information to the puppet-dev list" task :mail_patches do |