Skip to content

Commit

Permalink
Fail the build if the Buck command fails
Browse files Browse the repository at this point in the history
We have to hackily parse the output of the build command
because we can't get the exit code. *sigh*
  • Loading branch information
shs96c committed Apr 22, 2016
1 parent 8b4a719 commit 99e2fd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rake-tasks/buck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def self.buck_cmd
# end
end

# Because we can't get the exit code, hackily parse the output
if err.index('FAILED') != nil
raise "Buck build failed"
end

block.call(output.to_s) if block
}
)
Expand Down

0 comments on commit 99e2fd0

Please sign in to comment.