lbry-sdk/packaging/windows/test.ps1
Job Evers-Meltzer 9f2dbd4291 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.
2016-10-18 09:44:21 -05:00

5 lines
229 B
PowerShell

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) }