Better filtering

This commit is contained in:
Ash Wilson
2017-07-31 10:59:46 -04:00
parent e53cb5e5ef
commit 3690b682c8

View File

@@ -44,7 +44,7 @@ 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 -Include *.xml | ForEach-Object {
Get-ChildItem -Path $env:TEST_JUNIT_XML_ROOT\* -Recurse -File -Name -Include *.xml | ForEach-Object {
Write-Output "Uploading JUnit XML $($_)"
$wc.UploadFile($endpoint, $_)
}