Skip to content

Commit

Permalink
SCB-1591 sonarcloud.io integration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chanjarster committed Nov 15, 2019
1 parent aea2639 commit 2669d07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/test.sh
Expand Up @@ -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;

Expand Down

0 comments on commit 2669d07

Please sign in to comment.