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:
parent
850b01b2d2
commit
b2b69cb85e
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue