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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2669d07  SCB-1591 sonarcloud.io integration fix
2669d07 is described below

commit 2669d07793b9562ba5b3284e49cf70f6d330a813
Author: Daniel Qian <[email protected]>
AuthorDate: Fri Nov 15 09:18:10 2019 +0800

    SCB-1591 sonarcloud.io integration fix
---
 scripts/test.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/scripts/test.sh b/scripts/test.sh
index 55d9d72..648913d 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -36,11 +36,12 @@ else
        fi
        
        echo "Running the unit tests and integration tests here!"
-  echo "TRAVIS_SECURE_ENV_VARS=$TRAVIS_SECURE_ENV_VARS";
-  if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then
-    echo "Running sonar build";
+  echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
+  if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
+    echo "Not a pull request build, running build with sonar"
     mvn clean install -Pjacoco coveralls:report sonar:sonar 
-Dsonar.projectKey=servicecomb-toolkit
   else
+    echo "Pull request build or local build"
     mvn clean install -Pjacoco coveralls:report
   fi;
        

Reply via email to