Skip to content

Commit

Permalink
Merge pull request #70 from ringcentral/WAT-647
Browse files Browse the repository at this point in the history
ci(WAT-647): Integration the sonarcloud to Enhance TestRing Automated Code Analysis Workflow
  • Loading branch information
flops authored Jun 20, 2019
2 parents d62f132 + 1ce7d33 commit 1160c58
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ git:

addons:
chrome: stable
sonarcloud:
organization: "ringcentral"
token:
secure: "xzS9szSu7A+yzpqf4n/YIB5LFVhySghNPlekW5kFc/t0+xefFBgfYSDr2yXhcbMyL/ZlCmIL8/RSdL83QtgThI4vLQfRp/DQTrap58D3aboCb9yKY57ELzv/jwbH1tJ3ocy/GzTbDDcHb0V/tzElELGWPcKQIbu9T2RisJxpo7P+XGjEV6eDlzsE/rFh6tP7gF2dEE/RcvjGfOamOFLK/XtUPAeO50sKqnDQvmU3GfKtwwnGLFAqIPJOU5m8BJGfZrhDY18EOwLxAOXCCb+//FwiOm0AiR+N0/WnZGP7ZLcOMcVKcje9IGg0+j5B5wziCGuZtJuDh9VyORzrxsgXL/xhUKoMy8yQ5f70ziMFWG/oJexQP+ItDYKkktXEM8PkNrtgxnDcHSDN37Xda9m0vSAwrLInISnG65jIsJO53QY3eemd9DBZMPOGTWYAkMZK8Si1GcXNhfAhTT2e6nKZIYvDy/ADoPSgk1hqyxMZOdmqQQSVPg0qur1lk8Lmvc25UyPqZt8hsldOKfwkg5GEXYC5kLuRJa+ZuaMjWmNlg1DEGhyhE19JhgRIsvPF7u654RKwaTzMndCAR2vuMfspK+YVtPHJVt6EMw+jnjilt4dZb0Qp6CHYgQnSNq+p256oc73MjvA5lq+foTgat89fFgPoPp63sLiaRA8OYLfxQwA="

language: node_js
dist: trusty

node_js:
- "10"
Expand All @@ -18,7 +23,9 @@ cache:
- $HOME/.npm
- node_modules

script: xvfb-run npm run build:ci
script:
- xvfb-run npm run build:ci
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi' # sonar only on non-PRs https://github.com/travis-ci/travis-ci/issues/10062

stages:
- test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:e2e": "lerna run --stream --scope @testring/e2e-test-app e2e",
"test:e2e-simple": "lerna run --stream --scope @testring/e2e-test-app e2e-simple",
"test:coverage": "nyc npm test",
"test:publish": "coveralls < ./coverage/lcov.info && rimraf ./coverage -G",
"test:publish": "coveralls < ./coverage/lcov.info && rimraf ./coverage/lcov-report -G",
"test:ci": "npm run test:coverage && npm run test:e2e && npm run test:publish",
"build": "npm run build:main && npm run build:devtool && npm run build:extension",
"build:main": "lerna exec --ignore=\"@testring/@(e2e-test-app|devtool-frontend|devtool-extension|ui-kit)\" -- tsc --target es2015",
Expand Down
1 change: 1 addition & 0 deletions packages/devtool-extension/static/popup.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Testring popup</title>
Expand Down
11 changes: 11 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sonar.projectKey=ringcentral_testring
sonar.sources=.
sonar.exclusions=**/node_modules/**
sonar.test.inclusions=packages/**/*.spec.ts
sonar.typescript.lcov.reportPaths=coverage/lcov.info
sonar.typescript.tsconfigPath=tsconfig.json

sonar.links.homepage=https://github.com/ringcentral/testring
sonar.links.ci=https://travis-ci.org/ringcentral/testring
sonar.links.scm=https://github.com/ringcentral/testring
sonar.links.issue=https://github.com/ringcentral/testring/issues

0 comments on commit 1160c58

Please sign in to comment.