Use Powershell for Cygwin commands.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2016-04-05 08:10:03 +02:00
parent 495db12206
commit 68a1b105ee

View File

@ -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")
{