Minor change : make sure the scripts stop if Maven build fails. Signed-off-by: Serge Huber <shu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/87e8763e Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/87e8763e Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/87e8763e Branch: refs/heads/feature-UNOMI-5-KARAF4 Commit: 87e8763ed45497ecd15ab4e8e688f1322c8fab5e Parents: 9758103 Author: Serge Huber <shu...@apache.org> Authored: Sat May 6 23:18:52 2017 +0200 Committer: Serge Huber <shu...@apache.org> Committed: Sat May 6 23:18:52 2017 +0200 ---------------------------------------------------------------------- buildAndRun.sh | 4 ++++ buildAndRunNoTests.sh | 4 ++++ 2 files changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/87e8763e/buildAndRun.sh ---------------------------------------------------------------------- diff --git a/buildAndRun.sh b/buildAndRun.sh index 4037f3a..e7128f9 100755 --- a/buildAndRun.sh +++ b/buildAndRun.sh @@ -24,6 +24,10 @@ if [ -f "$DIRNAME/setenv.sh" ]; then . "$DIRNAME/setenv.sh" fi mvn clean install -P integration-tests,performance-tests,rat +if [ $? -ne 0 ] +then + exit 1; +fi pushd package/target echo Uncompressing Unomi package... tar zxvf unomi-$UNOMI_VERSION.tar.gz http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/87e8763e/buildAndRunNoTests.sh ---------------------------------------------------------------------- diff --git a/buildAndRunNoTests.sh b/buildAndRunNoTests.sh index fa53832..4bb0028 100755 --- a/buildAndRunNoTests.sh +++ b/buildAndRunNoTests.sh @@ -24,6 +24,10 @@ if [ -f "$DIRNAME/setenv.sh" ]; then . "$DIRNAME/setenv.sh" fi mvn clean install -P \!integration-tests,\!performance-tests,rat +if [ $? -ne 0 ] +then + exit 1; +fi pushd package/target echo Uncompressing Unomi package... tar zxvf unomi-$UNOMI_VERSION.tar.gz