summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Parker-Shemilt <palfrey@tevp.net>2019-12-28 12:07:26 +0000
committerTom Parker-Shemilt <palfrey@tevp.net>2019-12-28 12:07:26 +0000
commita3bbcfe3ebd61694304ef5c085a65dadbfa8e206 (patch)
tree2d3f8fb36149d89e3fcbaa8fce6b6121c39d5187
parentb81fc16224a400cefe789fcbfb0443e25d74b8b9 (diff)
Make sure travis dies if a step fails
-rw-r--r--.travis.yml12
1 files 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