Skip to content

Commit

Permalink
打开sonar脚本注解
Browse files Browse the repository at this point in the history
  • Loading branch information
fartherp committed Jan 13, 2020
1 parent a7d29e5 commit 0225826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ addons:
packages:
- mysql-server
- mysql-client
sonarcloud:
organization: "fartherp"
token:
secure: "VE7TSRS7MATzx2xTEKpscYZcPbV5dPYlvgak1nWjJPBNlb2Ur0lbZVVHm5mF4ucsbwJdcHyBmUlHDzXBAXSXd8Ai4bbrL3SQ3ilF87Ls99P3OyTmui82sL3JGoLBCsDfSNkhY5sHOSTQZo3FsNgRVLCNGDLt43TYdyi0oMIMuPu2Xo8ReBPhAldcHl6AE7XMIHb9340tbPjdYxY9Brs3DuxMng4PrdjnHdngYuH6sANRYC/sH2PUZYDay/k6PaQ+0oFmL8wtbWOQ9yfVJWsrw3zJL1k+t+/AyjsRMCkbw0CN3zypPqmwGnoMqK1vkjuR+QELB+sTqXOgYWXpY8V/rzQeCPzG8Dmf5SDISrcd8lHWMB4T5ibBlHK+7C04y9L3YB6xO/gFgsSIVyV9cdtrcLbuy67eAG3D9HLyeUdHDKVxnkSXyIP2toU+XEwkDp2WNiB5zVeII3FL+u+3SWHbvWEVyCXbtL5Xw11SqVfxjoaIiA4wj8GuR1g7ZBgL1UECS4QfLU170CpLWyEuchWckZfuMLpo56Ynu/DIM0NAcuNn3bMFv6vI6dtW8QmSzAqH2oAC9gQBtFeNdpEnKy2D8JJuHJL1lrp9ciH1Eo2z+H0j+9OuuvsZ77/e6/FU1eBnljncG2TS+L4sJzVSmh9bk3fa8k7OKAlCtQCcuFB4tGk="

before_install:
- chmod +x mvnw
Expand Down
6 changes: 2 additions & 4 deletions travis/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,14 @@ if [ $TRAVIS_REPO_SLUG == "fartherp/framework" ] && [ "$TRAVIS_BRANCH" == "maste
./mvnw clean test jacoco:report coveralls:report -q --settings ./travis/settings.xml
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"

./mvnw sonar:sonar -Dsonar.projectKey=fartherp_framework

# Deploy to site
# Cannot currently run site this way
# ./mvnw site site:deploy -q --settings ./travis/settings.xml
# echo -e "Successfully deploy site under Travis job ${TRAVIS_JOB_NUMBER}"

# Deploy to sonar
# ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=a4db6769319225f45af10dfd67e8d982d3f8fe0a -q --settings ./travis/settings.xml
# echo -e "Successfully ran Sonar integration under Travis job ${TRAVIS_JOB_NUMBER}"
./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.projectKey=fartherp_framework -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=4fc109aa2147f429a3adf9c799f8e73ed92f8337
echo -e "Successfully ran Sonar integration under Travis job ${TRAVIS_JOB_NUMBER}"
else
echo "Java Version does not support additonal activity for travis CI"
fi
Expand Down

0 comments on commit 0225826

Please sign in to comment.