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.
This commit is contained in:
Job Evers-Meltzer 2016-10-18 09:44:21 -05:00
parent 733bb3bccf
commit 9f2dbd4291

View file

@ -1,4 +1,4 @@
C:\Python27\Scripts\pip.exe install mock C:\Python27\Scripts\pip.exe install mock
C:\Python27\Scripts\pip.exe install pylint C:\Python27\Scripts\pip.exe install pylint
C:\Python27\python.exe C:\Python27\Scripts\trial.py C:\projects\lbry\tests\unit C:\Python27\python.exe C:\Python27\Scripts\trial.py C:\projects\lbry\tests\unit
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }