zammad-docker-compose/.github/tests.sh
André Bauer 33beea77df
test github action (#136)
* changed github action
2020-02-27 00:33:46 +01:00

21 lines
302 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 10
echo
echo "Success - Zammad is up :)"
echo