Attempt to fix build; after_test "executed with exception"

I'm a little confused as to how this happened.  It could
relate to an exit code sent by SonarScanner.

I'm going to combine these two commands into a single step
so that if SonarScanner drops a non-zero exit code, it should
still continue on past it.
This commit is contained in:
Craig Fowler 2021-02-27 19:32:46 +00:00
parent 850b01b2d2
commit b2b69cb85e

View file

@ -74,8 +74,12 @@ test_script:
- ps: dotnet test --collect:"XPlat Code Coverage" --logger:xunit -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
after_test:
- ps: if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet-sonarscanner end /d:sonar.login=$env:sonarcloud_api_key }
- ps: dotnet pack Elsa.sln --include-symbols /p:Version="$env:APPVEYOR_BUILD_VERSION"
- ps: >-
if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
& dotnet-sonarscanner end /d:sonar.login=$env:sonarcloud_api_key
}
dotnet pack Elsa.sln --include-symbols /p:Version="$env:APPVEYOR_BUILD_VERSION"
artifacts:
- path: '**/*.nupkg'