Permalink
Browse files

ensure build failures are surfaced

  • Loading branch information...
1 parent 61d7d59 commit 7f3017e93a5ec1d081f4a2424b03a3ea70e10227 @adamralph adamralph committed Nov 17, 2012
Showing with 6 additions and 2 deletions.
  1. +3 −1 src/Invoke-DebugBuild.ps1
  2. +3 −1 src/Invoke-ReleaseBuild.ps1
@@ -1,4 +1,6 @@
$ThisDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value).MyCommand.Path
Import-Module $ThisDir\..\packages\psake.4.2.0.1\tools\psake.psm1 -force
Invoke-psake $ThisDir\BuildTasks.ps1 -properties @{"MSBuildConfiguration"="Debug"}
-Remove-Module psake
+$build_success = $psake.build_success
+Remove-Module psake
+if ($build_success -eq $false) { exit 1 } else { exit 0 }
@@ -1,4 +1,6 @@
$ThisDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value).MyCommand.Path
Import-Module $ThisDir\..\packages\psake.4.2.0.1\tools\psake.psm1 -force
Invoke-psake $ThisDir\BuildTasks.ps1 -properties @{"MSBuildConfiguration"="Release"}
-Remove-Module psake
+$build_success = $psake.build_success
+Remove-Module psake
+if ($build_success -eq $false) { exit 1 } else { exit 0 }

0 comments on commit 7f3017e

Please sign in to comment.