Skip to content

Commit 99e2fd0

Browse files
committed
Fail the build if the Buck command fails
We have to hackily parse the output of the build command because we can't get the exit code. *sigh*
1 parent 8b4a719 commit 99e2fd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rake-tasks/buck.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def self.buck_cmd
2828
# end
2929
end
3030

31+
# Because we can't get the exit code, hackily parse the output
32+
if err.index('FAILED') != nil
33+
raise "Buck build failed"
34+
end
35+
3136
block.call(output.to_s) if block
3237
}
3338
)

0 commit comments

Comments
 (0)