21 lines
498 B
Bash
Executable file
21 lines
498 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -uo pipefail
|
|
|
|
max_passes=3
|
|
pass=1
|
|
while (( pass <= max_passes )); do
|
|
echo "Brick verification pass $pass/$max_passes"
|
|
if ./scripts/quality-gate.sh; then
|
|
echo "Brick verification converged on pass $pass"
|
|
exit 0
|
|
fi
|
|
if (( pass == max_passes )); then
|
|
break
|
|
fi
|
|
echo "Gate failed; waiting for the next bounded iteration."
|
|
pass=$((pass + 1))
|
|
done
|
|
|
|
echo "Brick verification did not converge after $max_passes passes." >&2
|
|
exit 1
|
|
|