ref: refs/heads/master
commit e88dce9bfb4f13fc5bde69560de866bb131293a7
Author: Duncan Mac-Vicar P
Date: Mon Aug 10 13:33:43 2009 +0200
add rcov from top level
---
Rakefile | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Rakefile b/Rakefile
index 944aeb2..8ea738f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,14 +6,17 @@ def sudo(cmd)
%x[sudo -p "Password: " #{cmd}]
end
-env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
+vars = ['PKG_BUILD', 'RCOV_PARAMS']
+
+env = ENV.map { |key,val| ENV[key] ? %(#{key}="#{ENV[key]}") : nil }.reject {|x| x.nil?}.join(' ')
+#env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
plugins = Dir.glob('plugins/*')#.reject{|x| ['users'].include?(File.basename(x))}
PROJECTS = ['webservice', *plugins]
desc 'Run all tests by default'
task :default => :test
-%w(test rdoc pgem package release install install_policies check_syntax package-local buildrpm buildrpm-local).each do |task_name|
+%w(test rdoc pgem package release install install_policies check_syntax package-local buildrpm buildrpm-local test:test:rcov).each do |task_name|
desc "Run #{task_name} task for all projects"
task task_name do
PROJECTS.each do |project|
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org