From 95fd75404245d951f2b359cda5789690c8447182 Mon Sep 17 00:00:00 2001
From: Robert Scott <code@humanleg.org.uk>
Date: Tue, 21 Aug 2018 23:18:20 +0100
Subject: [PATCH v1 1/2] appveyor: attempt to push test results on_finish
 rather than after_test

...so that we also keep results of failures
---
 appveyor.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index db3e06c02..bb394d73b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -14,11 +14,12 @@ on_finish:
         Foreach-Object {
             $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_))
         }
+  # we want to push test result artifact even if the tests fail, so uploading manually
+  - 7z a test-results.zip test\report\TEST*.xml
+  - ps: Push-AppveyorArtifact test-results.zip
 artifacts:
   - path: dist\josm-custom.*
   - path: checkstyle-josm.xml
   - path: pmd-josm.xml
   - path: spotbugs-josm.xml
-  - path: test\report
-    type: zip
   - path: hs_err_pid*.log
-- 
2.11.0

