diff options
author | Kerry Buckley <kerryjbuckley@gmail.com> | 2009-05-18 11:13:51 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-18 11:13:51 +0200 |
commit | 49afe81a13a98d1878f2400bef11a7b89468dff0 (patch) | |
tree | 484e5152fc52b593ad7de85427561c6d79b1e890 /Rakefile | |
parent | e89241c92fbcf68b59d9efb50c21c5040e9f3156 (diff) | |
download | rails-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-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |