028f6f4f5d
* added autowizard as test Signed-off-by: André Bauer <monotek23@gmail.com> * fix filename Signed-off-by: André Bauer <monotek23@gmail.com> * removed workflow needs Signed-off-by: André Bauer <monotek23@gmail.com> * added another sleep to see some more logs Signed-off-by: André Bauer <monotek23@gmail.com> * remove sleep Signed-off-by: André Bauer <monotek23@gmail.com>
30 lines
507 B
Bash
Executable File
30 lines
507 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# run zammad tests
|
|
#
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
docker-compose logs --timestamps --follow &
|
|
|
|
until (curl -I --silent --fail localhost | grep -iq "HTTP/1.1 200 OK"); do
|
|
echo "wait for zammad to be ready..."
|
|
sleep 15
|
|
done
|
|
|
|
sleep 30
|
|
|
|
echo
|
|
echo "Success - Zammad is up :)"
|
|
echo
|
|
echo "Execute autowizard..."
|
|
echo
|
|
|
|
curl -I --silent --fail --show-error "http://localhost/#getting_started/auto_wizard/docker_compose_token" > /dev/null
|
|
|
|
echo
|
|
echo "Autowizard executed successful"
|
|
echo
|
|
|