Woodpecker: Ensure correct workflow status in lint pipeline
This commit is contained in:
parent
b67d7c1106
commit
0fd544722f
1 changed files with 12 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ steps:
|
||||||
- su testuser -c "HOME=/home/testuser mix local.rebar --force"
|
- su testuser -c "HOME=/home/testuser mix local.rebar --force"
|
||||||
- su testuser -c "HOME=/home/testuser mix deps.get"
|
- su testuser -c "HOME=/home/testuser mix deps.get"
|
||||||
- |
|
- |
|
||||||
if ! su testuser -c "HOME=/home/testuser mix analyze" && ! -f fail.stamp; then
|
if [ ! su testuser -c "HOME=/home/testuser mix analyze" && ! -f fail.stamp ]; then
|
||||||
touch fail.stamp
|
touch fail.stamp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -34,3 +34,14 @@ steps:
|
||||||
image: *elixir-image
|
image: *elixir-image
|
||||||
commands:
|
commands:
|
||||||
- mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}'
|
- mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}'
|
||||||
|
|
||||||
|
ensure-status:
|
||||||
|
image: *elixir-image
|
||||||
|
commands: |
|
||||||
|
if [ -f fail.stamp ]; then
|
||||||
|
echo "One or more previous steps fails. Failing workflow...
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All steps passed"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue