summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2016-04-06 16:56:33 +0100
committerChris Wilson <chris+github@qwirx.com>2016-04-10 21:24:40 +0100
commit29aaeffe3da763ade99b614d94f4caf10c658ac5 (patch)
tree8fa811ac218ff1b04ba10c9569d0c90e7240a46a /appveyor.yml
parent338c4ed8eb79193e1df36b97cb810374eb42c9a3 (diff)
Cache downloaded OpenSSL, and only download them if not already cached.
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml43
1 files changed, 20 insertions, 23 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 88406c8a..b566b485 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -25,12 +25,13 @@ environment:
cache:
- '..\zlib-1.2.8'
- '..\zlib-%PLATFORM%'
+ - '..\openssl-%OPENSSL_VERSION%.tar.gz'
- '..\openssl-%OPENSSL_VERSION%'
- '..\openssl-%PLATFORM%'
+ - '..\pcre-%PCRE_VERSION%.zip'
- '..\pcre-%PCRE_VERSION%'
- '..\pcre-%PLATFORM%'
- 'infrastructure\cmake\build'
- - '..\pcre-%PCRE_VERSION%.zip'
init:
# Uncomment the following two lines to enable RDP access to the virtual machine for debugging.
@@ -42,24 +43,22 @@ build:
project: infrastructure/cmake/build/BoxBackup.sln
install:
- - cinst strawberryperl 7zip.commandline cmake
+ # Show compiled files restored from cache
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\bin_bbackupd.dir
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\%PLATFORM%
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\%PLATFORM%\%CONFIGURATION%
- - dir "C:\Program Files\Microsoft SDKs\Windows"
- - dir "C:\Program Files\Microsoft SDKs\Windows\v7.1"
- - dir "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin"
- - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86'
+ - cinst strawberryperl 7zip.commandline cmake
- - echo %PATH%
- - mkdir foo
- - rmdir /s/q foo
- - mkdir foo
- - c:\perl\bin\perl -e "print system('rmdir /s/q foo')"
- - c:\perl\bin\perl -v
+ # - dir "C:\Program Files\Microsoft SDKs\Windows"
+ # - dir "C:\Program Files\Microsoft SDKs\Windows\v7.1"
+ # - dir "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin"
- - ps: "[Net.ServicePointManager]::SecurityProtocol = 'Tls12'"
+ - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86'
- cd %APPVEYOR_BUILD_FOLDER%\..
- - ps: Start-FileDownload 'http://zlib.net/zlib128.zip'
+ - if not exist zlib128.zip appveyor DownloadFile "http://zlib.net/zlib128.zip"
- 7za x -aoa zlib128.zip
- cd zlib-1.2.8
- cmake -G "%Generator%" -A %PLATFORM% -DCMAKE_INSTALL_PREFIX="..\zlib-%PLATFORM%" .
@@ -69,7 +68,7 @@ install:
- msbuild INSTALL.vcxproj /m /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cd %APPVEYOR_BUILD_FOLDER%\..
- - ps: Start-FileDownload "https://www.openssl.org/source/openssl-$($env:OPENSSL_VERSION).tar.gz"
+ - if not exist openssl-%OPENSSL_VERSION%.tar.gz appveyor DownloadFile "https://www.openssl.org/source/openssl-%OPENSSL_VERSION%.tar.gz"
- 7za x -aoa openssl-%OPENSSL_VERSION%.tar.gz
- 7za x -aoa openssl-%OPENSSL_VERSION%.tar
- cd openssl-%OPENSSL_VERSION%
@@ -79,7 +78,7 @@ install:
- nmake /s /f ms\nt.mak install
- cd %APPVEYOR_BUILD_FOLDER%\..
- - ps: Start-FileDownload "http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$($env:PCRE_VERSION).zip"
+ - if not exist pcre-%PCRE_VERSION%.zip appveyor DownloadFile "http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%PCRE_VERSION%.zip"
- 7za x -aoa pcre-%PCRE_VERSION%.zip
- cd %APPVEYOR_BUILD_FOLDER%\..
- cd pcre-%PCRE_VERSION%
@@ -100,21 +99,19 @@ install:
- cmake -G "%Generator%" -A %PLATFORM% ..
- cd %APPVEYOR_BUILD_FOLDER%
- - echo %PATH%
- - mkdir foo
- - rmdir /s/q foo
-
+ # Show files after build
- dir %APPVEYOR_BUILD_FOLDER%\..\zlib-1.2.8
- dir %APPVEYOR_BUILD_FOLDER%\..\zlib-%PLATFORM%
- dir %APPVEYOR_BUILD_FOLDER%\..\openssl-%OPENSSL_VERSION%
- dir %APPVEYOR_BUILD_FOLDER%\..\openssl-%PLATFORM%
- dir %APPVEYOR_BUILD_FOLDER%\..\pcre-%PCRE_VERSION%
- dir %APPVEYOR_BUILD_FOLDER%\..\pcre-%PLATFORM%
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\bin_bbackupd.dir
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\%PLATFORM%
+ - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\%PLATFORM%\%CONFIGURATION%
test_script:
- - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\%PLATFORM%
- - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build\*.dir
- - dir %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build
- cd %APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\build
- ctest -C %CONFIGURATION% -V