diff --git a/appveyor.yml b/appveyor.yml index 103fbeeb..98143764 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,13 +26,13 @@ test_script: dotnet sonarscanner begin /k:"mganss_XmlSchemaClassGenerator" /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.net6.0.xml" /d:sonar.coverage.exclusions="**/Program.cs" dotnet build } - - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutputFormat=opencover /p:CoverletOutput="..\coverage.xml" XmlSchemaClassGenerator.Tests\XmlSchemaClassGenerator.Tests.csproj /p:Include="[XmlSchemaClassGenerator]*" -f net6.0 + - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="..\coverage.json" XmlSchemaClassGenerator.Tests\XmlSchemaClassGenerator.Tests.csproj /p:Include="[XmlSchemaClassGenerator]*" -f net6.0 - ps: | if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner end /d:sonar.login="$env:sonar_token" } - pip install codecov - - codecov -f "coverage.net6.0.xml" + - codecov -f "coverage.net6.0.json" artifacts: - path: 'XmlSchemaClassGenerator\**\*.*nupkg' - path: 'XmlSchemaClassGenerator.Console\**\*.*nupkg'