Skip to content

Commit

Permalink
More test uploading work
Browse files Browse the repository at this point in the history
  • Loading branch information
pabender committed Feb 16, 2020
1 parent 4a032da commit 2a0d39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ after_test:
# This works, but the Appveyor display is unreliable.
- ps: |
$wc = New-Object 'System.Net.WebClient'
dir .\target\testreport
$files = Get-ChildItem -Path .\target\testreport -Include 'TEST-*.xml' -Recurse
$fileCount = $files.Count
echo "uploading $filesCount test results to Appveyor"
for ($I =1; $I -le ($filesCount -1); $I++) {
$file = $files.Get($I)
echo $file
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $file))
}
echo "finished uploading results"
Expand Down

0 comments on commit 2a0d39d

Please sign in to comment.