Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CI: short-circuit at first failing task. Chmod 755 bin, vendor, vendo…

…r/gems
  • Loading branch information...
commit 486a63c258c7eff44ece0dbfbca4e6a08eeb01a0 1 parent 1ac8e06
@jeremy jeremy authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 ci/ci_build.rb
View
7 ci/ci_build.rb
@@ -7,9 +7,8 @@ def root_dir
end
def rake(*tasks)
- result = nil
- tasks.each { |task| result = system("#{root_dir}/bin/rake", task) }
- result
+ tasks.each { |task| return false unless system("#{root_dir}/bin/rake", task) }
+ true
end
puts "[CruiseControl] Rails build"
@@ -27,7 +26,7 @@ def rake(*tasks)
puts
puts "[CruiseControl] Bundling RubyGems"
puts
- build_results[:bundle] = system 'rm -rf vendor && env CI=1 gem bundle --update && chmod 755 bin'
+ build_results[:bundle] = system 'rm -rf vendor && env CI=1 gem bundle --update && chmod 755 bin vendor vendor/gems'
end
cd "#{root_dir}/activesupport" do
Please sign in to comment.
Something went wrong with that request. Please try again.