summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-05-20 15:45:54 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-05-20 15:45:54 +1000
commit253fef1bd16cf96e76b8d920a4f37e6b94255027 (patch)
tree6fe1dc841abe20bf7c3972992744702e31cf2812
parentb37d683b7cdb062b5e8a835a82b211a46866e119 (diff)
downloadfacter-253fef1bd16cf96e76b8d920a4f37e6b94255027.tar.gz
facter-253fef1bd16cf96e76b8d920a4f37e6b94255027.tar.xz
facter-253fef1bd16cf96e76b8d920a4f37e6b94255027.zip
Added spec files to package list
Fixed CI rake tasks
-rw-r--r--Rakefile22
1 files 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