summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml
index c88b387..ad054b6 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -11,9 +11,23 @@ environment:
- GENERATOR: Visual Studio 12
BITS: 32
+cache:
+ - c:\deps -> appveyor.yml
+
install:
- - ps: Start-FileDownload "http://slproweb.com/download/Win${env:BITS}OpenSSL-1_0_2d.exe"
- - Win%BITS%OpenSSL-1_0_2d.exe /silent /verysilent /sp- /suppressmsgboxes /dir="c:\OpenSSL"
+ - ps: $file = "Win${env:BITS}OpenSSL-1_0_2d.exe"
+ - ps: $dir = "c:\deps"
+ - ps: $exists = Test-Path "$dir\$file"
+ - ps: >-
+ If ($exists -ne $True) {
+ Write-Host "Downloading: $dir\$file."
+ New-Item -Path $dir -type directory -force
+ Start-FileDownload "http://slproweb.com/download/$file" -FileName "$dir\$file"
+ } Else {
+ Write-Host "Reusing cached: $dir\$file."
+ }
+ - ps: >-
+ & "$dir\$file" /silent /verysilent /sp- /suppressmsgboxes /dir="c:\OpenSSL"
before_build:
- cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON -DBUILD_TESTS=ON -DENABLE_SSL_SUPPORT=True -G"%GENERATOR%" .