Add $ErrorActionPreference = 'Stop' to fail the build

This commit is contained in:
Sergei Vorobev
2016-04-19 15:51:54 -07:00
parent 80b6b7e809
commit d25cdffcfc
+2
View File
@@ -22,6 +22,7 @@ install:
build_script:
- ps: |
$ErrorActionPreference = 'Stop'
Import-Module .\PowerShellGitHubDev.psm1
Start-PSBuild -Publish
Start-PSBuild -FullCLR
@@ -62,6 +63,7 @@ test_script:
on_finish:
- ps: |
$ErrorActionPreference = 'Stop'
# Creating project artifact
$name = git describe
$zipFilePath = Join-Path $pwd "$name.zip"