This commit is contained in:
James Newton-King
2015-03-22 14:30:38 +13:00
parent 965296d15a
commit ff7e9f3f2a
2 changed files with 13 additions and 6 deletions
+10 -4
View File
@@ -2,17 +2,23 @@
$path = Split-Path -Path $MyInvocation.MyCommand.Path
write-host "Importing psake"
Import-Module ($path + '\..\Tools\PSake\psake.psm1')
Try
{
write-host "Starting build.ps1"
Invoke-psake ($path + '\build.ps1') Test -framework 3.5
if ($error -ne '')
if ($psake.build_success -eq $false)
{
$exitCode = $error.Count
write-host "build.ps1 exit code: $exitCode" -fore RED
exit $exitCode
write-host "build.ps1 failed" -fore RED
exit 1
}
else
{
write-host "build.ps1 succeeded" -fore GREEN
exit 0
}
}
Finally