From 9f62d3af6e3b9da06637e72d8463fdaf2322c535 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Sun, 3 Apr 2016 23:45:21 +0800 Subject: [PATCH] appveyor: cache dependency TODO: md5 check before downloading? --- appveyor.yml | 3 +++ tools/ci/win/install_dep.bat | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index fe23eef90..a863452eb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,6 +39,9 @@ environment: matrix: fast_finish: false +cache: + - AV + init: - set vcarch=%arch% - if "%arch%" == "x64" set vcarch=amd64 diff --git a/tools/ci/win/install_dep.bat b/tools/ci/win/install_dep.bat index dbd969b49..42f8dedb0 100644 --- a/tools/ci/win/install_dep.bat +++ b/tools/ci/win/install_dep.bat @@ -1,7 +1,10 @@ -echo downloading qtav dep "http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/download" -appveyor DownloadFile "http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/download" -FileName av.7z -7z x av.7z > NUL -move QtAV-depends* AV +:: TODO: check md5 +if not exist AV ( + echo downloading qtav dep "http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/download" + appveyor DownloadFile "http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/download" -FileName av.7z + 7z x av.7z > NUL + move QtAV-depends* AV +) xcopy /syi AV\include %QTDIR%\include > NUL if "%arch%" == "x64" ( xcopy /syi AV\lib\x64 %QTDIR%\lib > NUL