mirror of
https://github.com/github/rails.git
synced 2026-01-10 15:17:57 -05:00
CI: short-circuit at first failing task. Chmod 755 bin, vendor, vendor/gems
This commit is contained in:
@@ -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 @@ cd root_dir do
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user