From 68a1b105eec90687ff1bdf6ee563012ab1afd67d Mon Sep 17 00:00:00 2001 From: FrancisANDRE Date: Tue, 5 Apr 2016 08:10:03 +0200 Subject: [PATCH] Use Powershell for Cygwin commands. Signed-off-by: FrancisANDRE --- appveyor.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index a1a95fad0..f143753b8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -372,6 +372,15 @@ build_script: bash.exe configure --everything & make.exe -s) - ps: | + if ($env:builder -eq "cygwin") + { + $LastExitCode=0; + $cmd='bash.exe configure --everything';$cmd; + Write-Host -ForegroundColor Yellow $cmd ' LastExitCode=' $lastExitCode; + $LastExitCode=0; + $cmd='make.exe -s'; + Write-Host -ForegroundColor Yellow $cmd ' LastExitCode=' $lastExitCode; + } if ($env:builder -eq "msbuild") { $logger='"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"'; @@ -448,6 +457,7 @@ test_script: { if ($env:builder -eq "cygwin") { + $LastExitCode=0; if ($env:platform -eq "Win32") { $cmd = 'C:\cygwin\usr\sbin\cygserver.exe "&"';iex "& $cmd" @@ -456,7 +466,8 @@ test_script: { $cmd = 'C:\cygwin64\usr\sbin\cygserver.exe "&"';iex "& $cmd" } - $cmd = 'bash.exe -c "appveyor/Cygwin/runtests.sh"';iex "& $cmd" + $cmd = 'bash.exe -c "appveyor/Cygwin/runtests.sh"';iex "& $cmd"; + Write-Host -ForegroundColor Yellow $cmd ' LastExitCode=' $lastExitCode; } if ($env:builder -eq "msbuild" -and $env:linkmode -eq "shared") {