Skip to content

Commit 1f56a45

Browse files
committed
Excluded 'TestResults' from SonarCloud analysis, clean-up
1 parent 0724a3f commit 1f56a45

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ matrix:
66
- dotnet: 2.1 # latest available release
77
mono: none
88
solution: Mastercard.Developer.OAuth1Signer.sln
9+
env:
10+
- TEST_RESULTS_PATH=./Mastercard.Developer.OAuth1Signer.Tests/TestResults
911
install:
1012
- dotnet tool install --global dotnet-sonarscanner
1113
- dotnet restore
@@ -18,8 +20,9 @@ script:
1820
/d:sonar.organization="$SONAR_ORGANIZATION_KEY" \
1921
/d:sonar.host.url="$SONAR_URL" \
2022
/d:sonar.login="$SONAR_TOKEN" \
21-
/d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/TestResults/results.trx" \
22-
/d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/TestResults/coverage.xml"
23+
/d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/results.trx" \
24+
/d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml" \
25+
/d:sonar.exclusions="${TEST_RESULTS_PATH}/**/*"
2326
- dotnet test -c Release -l:"trx;LogFileName=results.trx" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="TestResults/coverage.xml"
2427
- dotnet publish -c Release
2528
- dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"

0 commit comments

Comments
 (0)