From 1380ebbc9e9dc556084157f6f9944978feb0547c Mon Sep 17 00:00:00 2001 From: rkh Date: Wed, 28 Jul 2010 09:22:17 +0000 Subject: [PATCH] add task for ci git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1486 7926756e-e54e-46e6-9721-ed318f58905e --- tasks/spec.rake | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tasks/spec.rake b/tasks/spec.rake index d13fbd675c..d85b076e83 100644 --- a/tasks/spec.rake +++ b/tasks/spec.rake @@ -10,5 +10,19 @@ begin end end task :spec => "spec:plugins:redmine_reporting" + + begin + require 'ci/reporter/rake/rspec' # use this if you're using RSpec + require 'ci/reporter/rake/test_unit' # use this if you're using Test::Unit + task :"spec:plugins:redmine_reporting:ci" => ["ci:setup:rspec", "spec:plugins:redmine_reporting"] + rescue LoadError + puts <<-EOS + Missing the CI Reporter gem. This is not fatal. + If you want XML output for the CI, execute + + gem install ci_reporter + + EOS + end rescue LoadError -end \ No newline at end of file +end