Still trying to get that Get-ChildItem call right

This commit is contained in:
Ash Wilson
2017-07-31 11:46:09 -04:00
parent 3690b682c8
commit 0a0e5e9cea

View File

@@ -44,7 +44,8 @@ after_test:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$endpoint = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
Get-ChildItem -Path $env:TEST_JUNIT_XML_ROOT\* -Recurse -File -Name -Include *.xml | ForEach-Object {
Write-Output "Searching for JUnit XML output beneath $($env:TEST_JUNIT_XML_ROOT)"
Get-ChildItem -Path "$($env:TEST_JUNIT_XML_ROOT)\*" -Recurse -File -Name -Include "*.xml" | ForEach-Object {
Write-Output "Uploading JUnit XML $($_)"
$wc.UploadFile($endpoint, $_)
}