Skip to content

Commit

Permalink
Report errors in 'all project' rake tasks [#2224 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
kerryb authored and lifo committed May 18, 2009
1 parent e89241c commit 49afe81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -15,9 +15,11 @@ task :default => :test
%w(test isolated_test rdoc pgem package release).each do |task_name|
desc "Run #{task_name} task for all projects"
task task_name do
errors = []
PROJECTS.each do |project|
system %(cd #{project} && #{env} #{$0} #{task_name})
system(%(cd #{project} && #{env} #{$0} #{task_name})) || errors << project
end
fail("Errors in #{errors.join(', ')}") unless errors.empty?
end
end

Expand Down

0 comments on commit 49afe81

Please sign in to comment.