summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG2
-rw-r--r--Rakefile19
2 files changed, 21 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index e432110..c743054 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
1.5.3:
+ Added ci namespace and Rake tasks
+
Fixed #1650 - OS X package creation script should be more selective
about cleaning out prior versions
diff --git a/Rakefile b/Rakefile
index c4f449f..0f6d2b8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -44,3 +44,22 @@ task :archive do
sh "git archive --format=tar --prefix=facter-#{archive}/ HEAD | gzip -c > facter-#{archive}.tgz"
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 RSpec tests"
+ task :spec => [:prep, 'ci:setup:rspec'] do
+ sh "cd spec; rake all; exit 0"
+ end
+
+end
+