From 9f2dbd42912d9e02e87ef9f1ba45b3215218a695 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 18 Oct 2016 09:44:21 -0500 Subject: [PATCH] Appveyor build needs to fail when tests fail According to https://www.appveyor.com/docs/build-configuration/#script-blocks-in-build-configuration a build only fails if an exception is thrown. This is causing builds to pass even if the tests fail. That same link suggests adding the code that is in this commit. --- packaging/windows/test.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/windows/test.ps1 b/packaging/windows/test.ps1 index 7df3c60e3..4128f327a 100644 --- a/packaging/windows/test.ps1 +++ b/packaging/windows/test.ps1 @@ -1,4 +1,4 @@ C:\Python27\Scripts\pip.exe install mock C:\Python27\Scripts\pip.exe install pylint C:\Python27\python.exe C:\Python27\Scripts\trial.py C:\projects\lbry\tests\unit - +if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }