Skip to content

Commit

Permalink
appveyor: cache dependency
Browse files Browse the repository at this point in the history
TODO: md5 check before downloading?
  • Loading branch information
wang-bin committed Apr 3, 2016
1 parent fb5e76c commit 9f62d3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ environment:
matrix:
fast_finish: false

cache:
- AV

init:
- set vcarch=%arch%
- if "%arch%" == "x64" set vcarch=amd64
Expand Down
11 changes: 7 additions & 4 deletions tools/ci/win/install_dep.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9f62d3a

Please sign in to comment.