make test environment container messages more generic
This commit is contained in:
parent
ccda6730c8
commit
6f179e65ee
|
@ -14,17 +14,17 @@ printf "Testing URL: $WP_BASE_URL\n\n"
|
||||||
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${WP_BASE_URL}/?pagename=ready)" != "200" ]]
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${WP_BASE_URL}/?pagename=ready)" != "200" ]]
|
||||||
|
|
||||||
do
|
do
|
||||||
echo "$(date) - Docker container is still being built"
|
echo "$(date) - Waiting for testing environment"
|
||||||
sleep ${DELAY_SEC}
|
sleep ${DELAY_SEC}
|
||||||
|
|
||||||
((count++))
|
((count++))
|
||||||
|
|
||||||
if [[ $count -gt ${MAX_ATTEMPTS} ]]; then
|
if [[ $count -gt ${MAX_ATTEMPTS} ]]; then
|
||||||
echo "$(date) - Docker container couldn't be built"
|
echo "$(date) - Testing environment couldn't be found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $count -gt 0 ]]; then
|
if [[ $count -gt 0 ]]; then
|
||||||
echo "$(date) - Docker container had been built successfully"
|
echo "$(date) - Testing environment is ready"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue