summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2015-11-29 22:17:34 -0800
committerAlan Antonuk <alan.antonuk@gmail.com>2015-11-30 21:05:22 -0800
commitd083e873556cfa876696cd59a673812dee73a355 (patch)
tree44795c887ae527c419f6db617d46ace1adc5341b
parentd8851bd7af1af4508269e766442ae638334e4266 (diff)
downloadrabbitmq-c-d083e873556cfa876696cd59a673812dee73a355.tar.gz
CI: Cache OpenSSL binary on AppVeyor
-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%" .