Skip to content

Commit

Permalink
Check if swig runs, if not update cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ezralanglois committed Mar 20, 2017
1 parent b5dadfc commit cdd527e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ install:
if (Test-Path "C:/ProgramData/chocolatey/bin/swig.exe") {
C:/ProgramData/chocolatey/bin/swig.exe -swiglib
if ($lastexitcode -ne 0) {
echo "using swig from cache"
echo "Installing swig from cache"
choco install swig --version 3.0.5 -y > $null
}
else{
choco install swig --version 3.0.5 -y > $null
echo "using swig from cache"
}
} else {
echo "Installing swig from cache"
choco install swig --version 3.0.5 -y > $null
}
- if not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
Expand Down

0 comments on commit cdd527e

Please sign in to comment.