From a3bbcfe3ebd61694304ef5c085a65dadbfa8e206 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sat, 28 Dec 2019 12:07:26 +0000 Subject: Make sure travis dies if a step fails --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4bdce21..064325f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,9 @@ services: - docker script: - - docker-compose up --build & - - curl https://raw.githubusercontent.com/vishnubob/wait-for-it/9995b721327eac7a88f0dce314ea074d5169634f/wait-for-it.sh -o wait-for-it.sh - - chmod +x wait-for-it.sh - - ./wait-for-it-sh localhost:3000 --timeout=0 - - curl -v http://localhost:3000/ - - curl -v http://localhost:3000/new/event/public \ No newline at end of file + - docker-compose up --build& || travis_terminate 1 + - curl https://raw.githubusercontent.com/vishnubob/wait-for-it/9995b721327eac7a88f0dce314ea074d5169634f/wait-for-it.sh -o wait-for-it.sh || travis_terminate 1 + - chmod +x wait-for-it.sh || travis_terminate 1 + - ./wait-for-it-sh localhost:3000 --timeout=0 || travis_terminate 1 + - curl -v http://localhost:3000/ || travis_terminate 1 + - curl -v http://localhost:3000/new/event/public || travis_terminate 1 \ No newline at end of file -- cgit v1.2.3