summaryrefslogtreecommitdiff
path: root/test.sh
blob: 6626437e5e45c12593aad5b750c7d9e51e8602c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

set -eux -o pipefail

cleanup() {
  docker-compose kill
}
trap cleanup 0

docker-compose up --build &

while [[ "$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/)" -ne "200" ]]; do sleep 5; done
curl -v http://localhost:3000/new/event/public

cleanup