From 54d2f25aa597790f47f24e92fdddedcd696aa25a Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Sun, 8 Oct 2017 17:46:45 +1100 Subject: [PATCH] Attempting to get test results reporting even if an error occurrs. --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 43f83a264..e3485dd35 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -50,7 +50,9 @@ after_build: - 7z a assimp.7z bin\%CONFIGURATION%\* lib\%CONFIGURATION%\* test_script: - - cmd: bin\%CONFIGURATION%\unit.exe --gtest_output=xml:testout.xml + - cmd: bin\%CONFIGURATION%\unit.exe --gtest_output=xml:testout.xml || ( +Powershell.exe -executionpolicy remotesigned -Command "(new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\testout.xml))" && exit 1 +) - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\testout.xml)) artifacts: