From 69e8cdf1fa87199c0145516cdbae98aed34834b9 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Fri, 26 Jan 2024 19:51:04 +0100 Subject: [PATCH] improved appveyor.yml show-instruction for unit-test results on windows-image --- appveyor.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 40d62c7d11..264f41d596 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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)