diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-05-20 15:45:54 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-05-20 15:45:54 +1000 |
commit | 253fef1bd16cf96e76b8d920a4f37e6b94255027 (patch) | |
tree | 6fe1dc841abe20bf7c3972992744702e31cf2812 | |
parent | b37d683b7cdb062b5e8a835a82b211a46866e119 (diff) | |
download | facter-253fef1bd16cf96e76b8d920a4f37e6b94255027.tar.gz facter-253fef1bd16cf96e76b8d920a4f37e6b94255027.tar.xz facter-253fef1bd16cf96e76b8d920a4f37e6b94255027.zip |
Added spec files to package list
Fixed CI rake tasks
-rw-r--r-- | Rakefile | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -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 |