Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(WAT-647): Integration the sonarcloud to Enhance TestRing Automated Code Analysis Workflow #70

Merged
merged 3 commits into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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