From d25cdffcfc2b8d447b24f15b37e4d9cad44ec3a0 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 19 Apr 2016 15:51:54 -0700 Subject: [PATCH] Add $ErrorActionPreference = 'Stop' to fail the build --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 1d4b21f7d1..ed2313d31d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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"