Skip to content

Commit

Permalink
Merge pull request #113 from Illumina/fix-appveyor
Browse files Browse the repository at this point in the history
Update cache when swig fails
  • Loading branch information
ezralanglois authored Mar 19, 2017
2 parents cc958ee + 87afbc1 commit b5dadfc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ install:
- cmd: date /T & time /T
- ps: |
if (Test-Path "C:/ProgramData/chocolatey/bin/swig.exe") {
echo "using swig from cache"
C:/ProgramData/chocolatey/bin/swig.exe -swiglib
if ($lastexitcode -ne 0) {
echo "using swig from cache"
}
else{
choco install swig --version 3.0.5 -y > $null
}
} else {
choco install swig --version 3.0.5 -y > $null
}
Expand Down

0 comments on commit b5dadfc

Please sign in to comment.