From 9d2ca79c19ee9efccf27474744ea22b977991c48 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Mon, 18 Mar 2019 22:43:23 +0700 Subject: [PATCH] [feature] Cause AppVeyor to upload an artifact of junit data when tests fail --- appveyor.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 2d5b5936f22..7be3873bed0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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