You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/07/06 14:44:51 UTC

[servicecomb-pack] branch master updated: Make script/test.sh fail fast.

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git


The following commit(s) were added to refs/heads/master by this push:
     new 12e27f4  Make script/test.sh fail fast.
12e27f4 is described below

commit 12e27f4792fb759284b06d4b5f277cad1f3a2fba
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Sat Jul 6 21:00:03 2019 +0800

    Make script/test.sh fail fast.
    
    Currently script/test.sh contains 3 mvn command execution, it
    will continue even if previous mvn command execution failed,
    that makes it hard to find out why build fails from pretty long
    build logs. So make it fail fast if previous mvn command
    execution fails will be helpful.
---
 scripts/test.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/test.sh b/scripts/test.sh
index 46fe4f9..d9bb8e6 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -22,7 +22,7 @@ then
   echo "Don't do anything here for the cron job!"
 else
   echo "Running the unit tests and integration tests here!"
-  mvn clean install -Pjacoco -Pdocker -P${SPRING_BOOT_PROFILE} coveralls:report
-  mvn clean verify -f demo -Pdemo -Pdocker -P${SPRING_BOOT_PROFILE} -Ddocker.useColor=false -Ddocker.showLogs
-  mvn clean verify -f acceptance-tests -Pdemo -Pdocker -P${SPRING_BOOT_PROFILE} -Ddocker.useColor=false -Ddocker.showLogs
+  mvn clean install -Pjacoco -Pdocker -P${SPRING_BOOT_PROFILE} coveralls:report \
+    && mvn clean verify -f demo -Pdemo -Pdocker -P${SPRING_BOOT_PROFILE} -Ddocker.useColor=false -Ddocker.showLogs \
+    && mvn clean verify -f acceptance-tests -Pdemo -Pdocker -P${SPRING_BOOT_PROFILE} -Ddocker.useColor=false -Ddocker.showLogs
 fi