Added sonar cloud
This commit is contained in:
@ -5,6 +5,9 @@ dist: trusty
|
|||||||
script:
|
script:
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
- dotnet build
|
- dotnet build
|
||||||
|
script:
|
||||||
|
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./travis/run_on_pull_requests; fi'
|
||||||
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./travis/run_on_non_pull_requests; fi'
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
||||||
@ -23,3 +26,9 @@ addons:
|
|||||||
build_command_prepend: "donet restore"
|
build_command_prepend: "donet restore"
|
||||||
build_command: "dotnet build"
|
build_command: "dotnet build"
|
||||||
branch_pattern: coverity_scan
|
branch_pattern: coverity_scan
|
||||||
|
sonarcloud:
|
||||||
|
organization: "xx-thedoctor-xx"
|
||||||
|
token: "$TRAVIS_SONARCLOUD_TOKEN"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- sonar-scanner
|
||||||
12
sonar-project.properties
Normal file
12
sonar-project.properties
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sonar.projectKey=xX-TheDoctor-Xx_PMF
|
||||||
|
sonar.organization=xx-thedoctor-xx
|
||||||
|
|
||||||
|
# This is the name and version displayed in the SonarCloud UI.
|
||||||
|
#sonar.projectName=PMF
|
||||||
|
#sonar.projectVersion=1.0
|
||||||
|
|
||||||
|
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||||
|
#sonar.sources=.
|
||||||
|
|
||||||
|
# Encoding of the source code. Default is default system encoding
|
||||||
|
#sonar.sourceEncoding=UTF-8
|
||||||
Reference in New Issue
Block a user