Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v1.11.0 #871

Merged
merged 19 commits into from
Mar 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Be more verbose during test startup
  • Loading branch information
cytopia committed Mar 18, 2022
commit d4b0be9ac4df5856ef5ed5e4ba567dd33188be89
23 changes: 20 additions & 3 deletions .tests/scripts/compose-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ fi
###
HOST_PORT_HTTPD="$( "${SCRIPT_PATH}/env-getvar.sh" "HOST_PORT_HTTPD" )"
MYSQL_ROOT_PASSWORD="$( "${SCRIPT_PATH}/env-getvar.sh" "MYSQL_ROOT_PASSWORD" )"
PHP_SERVER="$( "${SCRIPT_PATH}/env-getvar.sh" "PHP_SERVER" )"
HTTPD_SERVER="$( "${SCRIPT_PATH}/env-getvar.sh" "HTTPD_SERVER" )"


###
Expand Down Expand Up @@ -62,6 +64,9 @@ until curl -sS -I --fail -o /dev/null -w "%{http_code}" "http://localhost:${HOST
run "docker-compose exec -T --user devilbox php curl -sS -v 'http://localhost/'" "1" "${DVLBOX_PATH}" || true
run "docker-compose exec -T --user devilbox php curl -sS -I 'http://localhost/'" "1" "${DVLBOX_PATH}" || true
run "docker-compose exec -T --user devilbox php curl -sS -I -o /dev/null -w '%{http_code}' 'http://localhost/'" "1" "${DVLBOX_PATH}" || true
run "cd ${DVLBOX_PATH} && docker-compose logs" || true
run "cat ${DVLBOX_PATH}/log/php-fpm-${PHP_SERVER}/php-fpm.error" || true
run "cat ${DVLBOX_PATH}/log/${HTTPD_SERVER}/defaultlocalhost-error.log" || true
exit 1
fi

Expand All @@ -83,6 +88,9 @@ until curl -sS --fail "http://localhost:${HOST_PORT_HTTPD}" 2>/dev/null | grep '
printf "[FAIL]\\n"
curl -sS -v "http://localhost:${HOST_PORT_HTTPD}"
curl -sS -I "http://localhost:${HOST_PORT_HTTPD}"
run "cd ${DVLBOX_PATH} && docker-compose logs" || true
run "cat ${DVLBOX_PATH}/log/php-fpm-${PHP_SERVER}/php-fpm.error" || true
run "cat ${DVLBOX_PATH}/log/${HTTPD_SERVER}/defaultlocalhost-error.log" || true
exit 1
fi

Expand Down Expand Up @@ -114,7 +122,10 @@ until cd "${DVLBOX_PATH}" && docker-compose exec -T php mongofiles --host=mongo
i=$(( i + 1 ))
if [ "${i}" -eq "60" ]; then
printf "[FAIL]\\n"
cd "${DVLBOX_PATH}" && docker-compose exec -T php mongofiles --host=mongo list
cd "${DVLBOX_PATH}" && docker-compose exec -T php mongofiles --host=mongo list || true
run "cd ${DVLBOX_PATH} && docker-compose logs" || true
run "cat ${DVLBOX_PATH}/log/php-fpm-${PHP_SERVER}/php-fpm.error" || true
run "cat ${DVLBOX_PATH}/log/${HTTPD_SERVER}/defaultlocalhost-error.log" || true
exit 1
fi

Expand All @@ -134,7 +145,10 @@ until cd "${DVLBOX_PATH}" && docker-compose exec -T php mysql --user=root --pass
i=$(( i + 1 ))
if [ "${i}" -eq "60" ]; then
printf "[FAIL]\\n"
cd "${DVLBOX_PATH}" && docker-compose exec -T php mysql --user=root --password="${MYSQL_ROOT_PASSWORD}" --host=mysql -e 'show databases;'
cd "${DVLBOX_PATH}" && docker-compose exec -T php mysql --user=root --password="${MYSQL_ROOT_PASSWORD}" --host=mysql -e 'show databases;' || true
run "cd ${DVLBOX_PATH} && docker-compose logs" || true
run "cat ${DVLBOX_PATH}/log/php-fpm-${PHP_SERVER}/php-fpm.error" || true
run "cat ${DVLBOX_PATH}/log/${HTTPD_SERVER}/defaultlocalhost-error.log" || true
exit 1
fi

Expand All @@ -154,7 +168,10 @@ until cd "${DVLBOX_PATH}" && docker-compose exec -T php pg_isready --host=pgsql
i=$(( i + 1 ))
if [ "${i}" -eq "60" ]; then
printf "[FAIL]\\n"
cd "${DVLBOX_PATH}" && docker-compose exec -T php pg_isready --host=pgsql
cd "${DVLBOX_PATH}" && docker-compose exec -T php pg_isready --host=pgsql || true
run "cd ${DVLBOX_PATH} && docker-compose logs" || true
run "cat ${DVLBOX_PATH}/log/php-fpm-${PHP_SERVER}/php-fpm.error" || true
run "cat ${DVLBOX_PATH}/log/${HTTPD_SERVER}/defaultlocalhost-error.log" || true
exit 1
fi

Expand Down