This commit is contained in:
James Newton-King
2015-03-22 13:34:52 +13:00
parent 345c6f3512
commit f09cfcded0
3 changed files with 20 additions and 6 deletions
+16 -2
View File
@@ -3,5 +3,19 @@
$path = Split-Path -Path $MyInvocation.MyCommand.Path
Import-Module ($path + '\..\Tools\PSake\psake.psm1')
Invoke-psake ($path + '\build.ps1') Test -framework 3.5
Remove-Module psake
Try
{
Invoke-psake ($path + '\build.ps1') Test -framework 3.5
if ($error -ne '')
{
$exitCode = $error.Count
write-host "build.ps1 exit code: $exitCode" -fore RED
exit $exitCode
}
}
Finally
{
Remove-Module psake
}