Skip to content
Permalink
Browse files
NO-JIRA: upload the junit xml results files such that the results dis…
…play on the job dashboard
  • Loading branch information
gemmellr committed Jan 6, 2016
1 parent ebe8163 commit 0d7ca101b3a3f9c039024f60cc8d95cb6b95629b
Showing 1 changed file with 11 additions and 0 deletions.
@@ -25,6 +25,17 @@ test_script:

on_finish:
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
$wc = New-Object 'System.Net.WebClient'
$dirs = Get-ChildItem -Filter surefire-reports -Recurse
ForEach ($dir in $dirs)
{
$files = Get-ChildItem -Path $dir.FullName -Filter TEST-*.xml
ForEach ($file in $files)
{
$wc.UploadFile($url, (Resolve-Path $file.FullName))
}
}
7z a -r surefire-reports.zip '**\target\surefire-reports\*'
Push-AppveyorArtifact surefire-reports.zip -DeploymentName 'Surefire Reports'

0 comments on commit 0d7ca10

Please sign in to comment.