From d3921715aab97f2f3aa2830f733b6b96df079b39 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Mon, 20 Jul 2015 15:07:09 +0200 Subject: [PATCH] try to fix the script --- appveyor.yml | 2 +- ci/appveyor.ps1 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 8aa263f..60dd09b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,7 +5,7 @@ branches: build_script: - ps: >- & "$env:APPVEYOR_BUILD_FOLDER\ci\appveyor.ps1" - exit $lastexitcode + if ($lastexitcode -ne 0){ exit $lastexitcode } cache: - work\git -> appveyor.yml diff --git a/ci/appveyor.ps1 b/ci/appveyor.ps1 index 741d1ca..d85acb1 100644 --- a/ci/appveyor.ps1 +++ b/ci/appveyor.ps1 @@ -2,11 +2,11 @@ #http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt function batCall([string] $path, [string] $arg) { - Write-Host "Calling '$path' '$arg'" - cmd /c "'$path' '$arg' & set" | + Write-Host 'Calling "$path" "$arg"' + cmd /c '"$path" "$arg" & set' | foreach { if ($_ -match "=") { - Write-Host "ENV:\$($v[0])=$($v[1])" + #Write-Host "ENV:\$($v[0])=$($v[1])" $v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" } }