diff --git a/.travis.yml b/.travis.yml index 2074e9d9d..c43ba223c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,10 @@ install: - 'npm run vscode:prepublish' - 'npm install -g vsce' - 'vsce package' +after_success: + - if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" ]]; then + sonar-scanner + fi deploy: - provider: releases api_key: ${DEPLOY_TOKEN} @@ -30,3 +34,8 @@ cache: directories: - "node_modules" env: DISPLAY=:99 +addons: + sonarcloud: + organization: "camel-tooling" + branches: + - master diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..518702bc3 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,9 @@ +sonar.projectKey=camel-lsp-client-vscode +sonar.projectName=VS Code client for Apache Camel Language Server +sonar.sources=src,scripts +sonar.tests=test + +sonar.links.homepage=https://github.com/camel-tooling/camel-lsp-client-vscode +sonar.links.ci=https://travis-ci.org/camel-tooling/camel-lsp-client-vscode +sonar.links.scm=https://github.com/camel-tooling/camel-lsp-client-vscode +sonar.links.issue=https://github.com/camel-tooling/camel-lsp-client-vscode/issues \ No newline at end of file