aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorKerry Buckley <kerryjbuckley@gmail.com>2009-05-18 11:13:51 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-05-18 11:13:51 +0200
commit49afe81a13a98d1878f2400bef11a7b89468dff0 (patch)
tree484e5152fc52b593ad7de85427561c6d79b1e890 /Rakefile
parente89241c92fbcf68b59d9efb50c21c5040e9f3156 (diff)
downloadrails-49afe81a13a98d1878f2400bef11a7b89468dff0.tar.gz
rails-49afe81a13a98d1878f2400bef11a7b89468dff0.tar.bz2
rails-49afe81a13a98d1878f2400bef11a7b89468dff0.zip
Report errors in 'all project' rake tasks [#2224 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 58e1247600..fbb7f2213c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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