[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda

James Turnbull james at lovedthanlost.net
Fri Jan 29 17:22:29 UTC 2010


The following commit has been merged in the upstream branch:
commit 253fef1bd16cf96e76b8d920a4f37e6b94255027
Author: James Turnbull <james at lovedthanlost.net>
Date:   Wed May 20 15:45:54 2009 +1000

    Added spec files to package list
    Fixed CI rake tasks

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

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list