Skip to content

Commit 210ccef

Browse files
committed
Use net5.0 in coverage file name
1 parent db2df21 commit 210ccef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ test_script:
1616
- ps: |
1717
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
1818
dotnet tool install --global dotnet-sonarscanner
19-
dotnet sonarscanner begin /k:"mganss_HtmlSanitizer" /v:$env:APPVEYOR_BUILD_VERSION /o:"mganss-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env:sonar_token" /d:sonar.cs.opencover.reportsPaths="$($env:APPVEYOR_BUILD_FOLDER)\coverage.netcoreapp2.2.xml" /d:sonar.coverage.exclusions="**/Program.cs"
19+
dotnet sonarscanner begin /k:"mganss_HtmlSanitizer" /v:$env:APPVEYOR_BUILD_VERSION /o:"mganss-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env:sonar_token" /d:sonar.cs.opencover.reportsPaths="$($env:APPVEYOR_BUILD_FOLDER)\coverage.net5.0.xml" /d:sonar.coverage.exclusions="**/Program.cs"
2020
dotnet build
2121
}
22-
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="..\..\coverage.xml" test\HtmlSanitizer.Tests\HtmlSanitizer.Tests.csproj -f netcoreapp2.2
22+
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="..\..\coverage.xml" test\HtmlSanitizer.Tests\HtmlSanitizer.Tests.csproj -f net5.0
2323
- ps: |
2424
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
2525
dotnet sonarscanner end /d:sonar.login="$env:sonar_token"
2626
}
2727
- pip install codecov
28-
- codecov -f "coverage.netcoreapp2.2.xml"
28+
- codecov -f "coverage.net5.0.xml"
2929
artifacts:
3030
- path: 'src\**\*.*nupkg'
3131
on_success:

0 commit comments

Comments
 (0)