Skip to content

Commit

Permalink
[feature] Cause AppVeyor to upload an artifact of junit data when tes…
Browse files Browse the repository at this point in the history
…ts fail
  • Loading branch information
adamretter committed Mar 22, 2019
1 parent 0ff4a4d commit 9d2ca79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ after_test:
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $file.FullName)
}
on_failure:
- cmd: 7z a junit-failed-data.zip %APPVEYOR_BUILD_FOLDER%\exist-core\target\junit-reports\data\ && appveyor PushArtifact junit-failed-data.zip
- sh: tar czvf junit-failed-data.tgz $APPVEYOR_BUILD_FOLDER/exist-core/target/junit-reports/data/ && appveyor PushArtifact junit-failed-data.tgz

artifacts:
- path: exist-core\target\junit-reports
name: junit-reports

0 comments on commit 9d2ca79

Please sign in to comment.