From 8196536309421f2f6b8f816e1ae67b5a635c8da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 9 Sep 2014 17:12:20 +0200 Subject: [PATCH] terminate script execution in case of failure --- autotest-js.sh | 3 +++ autotest.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/autotest-js.sh b/autotest-js.sh index 8b9a106b021..a3a5f65fd2b 100755 --- a/autotest-js.sh +++ b/autotest-js.sh @@ -7,6 +7,9 @@ # @author Vincent Petry # @copyright 2014 Vincent Petry # + +set -e + NPM="$(which npm 2>/dev/null)" PREFIX="build" diff --git a/autotest.sh b/autotest.sh index d359aed91e7..eb6b4888188 100755 --- a/autotest.sh +++ b/autotest.sh @@ -6,6 +6,8 @@ # @copyright 2012, 2013 Thomas Müller thomas.mueller@tmit.eu # +set -e + #$EXECUTOR_NUMBER is set by Jenkins and allows us to run autotest in parallel DATABASENAME=oc_autotest$EXECUTOR_NUMBER DATABASEUSER=oc_autotest$EXECUTOR_NUMBER