Woodpecker CI: Lint workflow, don't use brackets in shell tests
This commit is contained in:
parent
b0de9bd3cd
commit
cdcc432f31
1 changed files with 4 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ steps:
|
|||
- su testuser -c "HOME=/home/testuser mix local.rebar --force"
|
||||
- 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" && ! test -f fail.stamp; then
|
||||
touch fail.stamp
|
||||
fi
|
||||
|
||||
|
|
@ -38,14 +38,14 @@ steps:
|
|||
failure: ignore
|
||||
commands:
|
||||
- |
|
||||
if [ ! mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}' && -f fail.stamp ]; then
|
||||
touch fail.stamp
|
||||
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
|
||||
fi
|
||||
|
||||
ensure-status:
|
||||
image: *elixir-image
|
||||
commands: |
|
||||
if [ -f fail.stamp ]; then
|
||||
if test -f fail.stamp; then
|
||||
echo "One or more previous steps fails. Failing workflow..."
|
||||
exit 1
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue