try to fix travis build

This commit is contained in:
tleydxdy 2020-04-23 23:08:35 -04:00
parent 73277a17ba
commit 88c3af5231

View File

@ -27,8 +27,5 @@ jobs:
install:
- docker-compose build
script:
- docker-compose up
- sleep 15 # Wait for cluster to become ready, TODO: do not sleep
- HEADERS="$(curl -I -s http://localhost:3000/)"
- STATUS="$(echo $HEADERS | head -n1)"
- if [[ "$STATUS" != *"200 OK"* ]]; then echo "$HEADERS"; exit 1; fi
- docker-compose up -d
- while curl -Isf http://localhost:3000; do sleep 1; done