ref: refs/heads/master
commit 65f140c10b327b4618a8e04e4d806ec36acd857b
Author: Duncan Mac-Vicar P
Date: Mon Aug 10 13:44:32 2009 +0200
allow to run rcov from top level dir
---
Rakefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Rakefile b/Rakefile
index ac229fa..4d16b5d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,11 +1,12 @@
-env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
+env = ENV.map { |key,val| ENV[key] ? %(#{key}="#{ENV[key]}") : nil }.reject {|x| x.nil?}.join(' ')
plugins = Dir.glob('plugins/*')#.reject{|x| ['users'].include?(File.basename(x))}
PROJECTS = ['webclient', *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