diff options
author | Raphael <raphaelkabo@gmail.com> | 2020-01-10 19:13:49 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 19:13:49 +1100 |
commit | 1df5f8cb731802df22fef8f22f9d70d3819a8008 (patch) | |
tree | 97e6b5f9e0cefb39472b91cd73728894ab8d3c63 /test.sh | |
parent | c5835cbdbcfe3abda637e298a89b36ebb058c22a (diff) | |
parent | 452c9f42f3769035cdb73e143283eff814de544d (diff) |
Merge pull request #31 from palfrey/docker-travis
Add Dockerised and Travis builds
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,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
\ No newline at end of file |