compose-website/tests/test.sh
2015-03-10 12:22:27 +00:00

16 lines
347 B
Bash
Executable file

#!/bin/bash -eux
image=$1
# prepare data
/data/indiehosters/utils/provision.sh -s -e test@test.org -a $image -u $image.test -f /data/indiehosters/tests/unsecure-certs/indiehosters.dev.pem
if [ "$image" == "static" ]; then
sleep 30
else
sleep 70
fi
systemctl list-units | grep "$image\.test" | grep -c failed | grep 0
curl -Lk $image.test