From e53cb5e5eff317a7e441a64e3968bbc0df07efee Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Mon, 31 Jul 2017 09:46:57 -0400 Subject: [PATCH] Powershell by means of StackOverflow --- appveyor.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 69fcacf55..eedc58e29 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -43,7 +43,11 @@ test_script: after_test: - ps: | $wc = New-Object 'System.Net.WebClient' - $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $env:TEST_JUNIT_XML_PATH) + $endpoint = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)" + Get-ChildItem -Path $env:TEST_JUNIT_XML_ROOT -Recurse -Include *.xml | ForEach-Object { + Write-Output "Uploading JUnit XML $($_)" + $wc.UploadFile($endpoint, $_) + } - IF [%APPVEYOR_REPO_BRANCH:~-9%]==[-releases] ( IF NOT EXIST C:\sqtemp MKDIR C:\sqtemp SET SQUIRREL_TEMP=C:\sqtemp