Woodpecker CI: Explicitely exit with non-zero exit code on fail
This commit is contained in:
parent
cdcc432f31
commit
08bf6c8fed
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ steps:
|
|||
- |
|
||||
if ! mix format --check-formatted; then
|
||||
touch fail.stamp
|
||||
exit 1
|
||||
fi
|
||||
|
||||
credo:
|
||||
|
|
@ -31,6 +32,7 @@ steps:
|
|||
- |
|
||||
if ! su testuser -c "HOME=/home/testuser mix analyze" && ! test -f fail.stamp; then
|
||||
touch fail.stamp
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cycles:
|
||||
|
|
@ -40,6 +42,7 @@ steps:
|
|||
- |
|
||||
if ! mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}' && test -f fail.stamp; then
|
||||
touch fail.stamp
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ensure-status:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue