improved appveyor.yml show-instruction for unit-test results on windows-image

This commit is contained in:
jkriege2 2024-01-26 19:51:04 +01:00
parent 73d3dff405
commit 69e8cdf1fa

View File

@ -183,7 +183,14 @@ for:
after_test:
- find "$APPVEYOR_BUILD_FOLDER" -type f -name 'test-results.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"
- ps: |
If (Test-Path %APPVEYOR_BUILD_FOLDER%\build\test-results.xml) {
(new-object net.webclient).UploadFile(
"https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)",
(Resolve-Path %APPVEYOR_BUILD_FOLDER%\build\test-results.xml)
)
}
$LastExitCode = 0
# Linux (Ubuntu2004)