From cbded6b6687c8d39a7e3aa3d131c3636940a6efe Mon Sep 17 00:00:00 2001 From: Glen Mailer Date: Wed, 6 Jan 2016 00:39:11 +0000 Subject: [PATCH] Ensure tests script fails if any tasks fail --- resources/node_test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/node_test.sh b/resources/node_test.sh index fcef7cdecf..a7c231a7fb 100755 --- a/resources/node_test.sh +++ b/resources/node_test.sh @@ -1,5 +1,8 @@ #!/bin/bash +# bail out if anything fails +set -e + # Run all tests using jest if [[ $TRAVIS ]] then jest -i # Travis tests are run inline