From 253fef1bd16cf96e76b8d920a4f37e6b94255027 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Wed, 20 May 2009 15:45:54 +1000 Subject: Added spec files to package list Fixed CI rake tasks --- Rakefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Rakefile b/Rakefile index 3026dec..132b1a8 100644 --- a/Rakefile +++ b/Rakefile @@ -12,6 +12,7 @@ FILES = FileList[ 'lib/**/*', 'conf/**/*', 'etc/**/*', + 'spec/**/*' ] spec = Gem::Specification.new do |spec| @@ -51,14 +52,21 @@ task :spec do end end -require 'rubygems' -gem 'ci_reporter' -require 'ci/reporter/rake/rspec' -require 'ci/reporter/rake/test_unit' -ENV['CI_REPORTS'] = 'results' +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 "Send patch information to the puppet-dev list" task :mail_patches do -- cgit