summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorTom Parker-Shemilt <palfrey@tevp.net>2019-12-28 23:10:51 +0000
committerTom Parker-Shemilt <palfrey@tevp.net>2019-12-28 23:10:51 +0000
commitffb5de97b95be9781a3fb4b70d778993b8c8c1e0 (patch)
treef24001c7b5a0441d385db74671af31d19d0b3092 /test.sh
parenta3bbcfe3ebd61694304ef5c085a65dadbfa8e206 (diff)
Redo Travis testing in a script
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..6626437
--- /dev/null
+++ b/test.sh
@@ -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