From 8fd8af68940aef3accf73d0f70bc72b2ab5b331b Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 11 May 2020 12:18:36 +0800 Subject: [PATCH] make fulltest.sh exit after upload coverage report. --- .travis.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 486844a7a9..b460ad05b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -163,11 +163,9 @@ matrix: cd ${TRAVIS_BUILD_DIR}/tests - ./test-all.sh + ./test-all.sh $TRAVIS_EVENT_TYPE - if [ "$?" -ne "0" ]; then - travis_terminate $? - fi + TEST_RESULT=$? pkill taosd sleep 1 @@ -199,6 +197,9 @@ matrix: echo -e "${RED} ## Codecov did not collect coverage report! ## ${NC} " fi + if [ "$TEST_RESULT" -ne "0" ]; then + travis_terminate $? + fi ;; esac -- GitLab