Skip to content

Commit

Permalink
Handle build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaubry committed Dec 18, 2014
1 parent 9244d21 commit 564584f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
} else {
msbuild YamlDotNet.sln /p:Configuration=$_
}

if($LASTEXITCODE -ne 0) {
throw "Build failed"
}
}

"Unsigned", "Signed" | % {
nuget pack YamlDotNet\YamlDotNet.$_.nuspec -OutputDirectory YamlDotNet\bin

if($LASTEXITCODE -ne 0) {
throw "Build failed"
}
}

0 comments on commit 564584f

Please sign in to comment.