[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:45 UTC 2009


The following commit has been merged in the master branch:
commit a1ac9a5c14d4589f5ee7fdaab3b2c47180c66a2e
Author: James Turnbull <james at lovedthanlost.net>
Date:   Wed Nov 26 15:58:36 2008 +1100

    Added Rake :ci namespace and CI tasks

diff --git a/CHANGELOG b/CHANGELOG
index b3c4e17..5ddad97 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
 0.24.x
+    Added Rake :ci namespace and CI tasks
+
     Fixed #1767 - Minor fix to emacs mode
 
     Fixed #1711 - fileserver test fails due to incorrect mocking
diff --git a/Rakefile b/Rakefile
index e30c70e..f6fee2c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -137,7 +137,7 @@ desc "Run the specs under spec/"
 task :spec do
     require 'spec'
     require 'spec/rake/spectask'
-    require 'rcov'
+    # require 'rcov'
     Spec::Rake::SpecTask.new do |t|
          #   t.rcov = true
          t.spec_opts = ['--format','s', '--loadby','mtime']
@@ -150,6 +150,29 @@ task :unit do
     sh "cd test; rake"
 end
 
+namespace :ci do
+
+  desc "Run the CI prep tasks"
+  task :prep do
+    require 'rubygems'
+    gem 'ci_reporter'
+    require 'ci/reporter/rake/rspec'
+    require 'ci/reporter/rake/test_unit'
+    ENV['CI_REPORTS'] = 'results'
+  end
+
+  desc "Run CI Unit tests"
+  task :unit => [:prep, 'ci:setup:testunit'] do
+     sh "cd test; rake test"
+  end
+
+  desc "Run CI RSpec tests"
+  task :spec => [:prep, 'ci:setup:rspec'] do
+     sh "cd spec; rake all"
+  end
+
+end
+
 desc "Send patch information to the puppet-dev list"
 task :mail_patches do
     if Dir.glob("00*.patch").length > 0

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list