mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-21 23:32:31 +00:00
no log: improved CI build test
This commit is contained in:
parent
44b5fe7e20
commit
67a459f23e
1 changed files with 11 additions and 4 deletions
15
.github/scripts/build_test.sh
vendored
15
.github/scripts/build_test.sh
vendored
|
@ -7,9 +7,16 @@ sleep 30
|
||||||
|
|
||||||
if kill -s 0 $PID
|
if kill -s 0 $PID
|
||||||
then
|
then
|
||||||
echo "Bazarr is still running. We'll kill it..."
|
echo "Bazarr is still running. We'll test if UI is working..."
|
||||||
kill $PID
|
|
||||||
exit 0
|
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exitcode=0
|
||||||
|
curl -fsSL --retry-all-errors --retry 60 --retry-max-time 120 --max-time 10 "http://127.0.0.1:6767" --output /dev/null || exitcode=$?
|
||||||
|
[[ ${exitcode} == 0 ]] && echo "UI is responsive, good news!" || echo "Oops, UI isn't reachable, bad news..."
|
||||||
|
|
||||||
|
echo "Let's stop Bazarr before we exit..."
|
||||||
|
pkill -INT -P $PID
|
||||||
|
|
||||||
|
exit ${exitcode}
|
Loading…
Reference in a new issue