appveyor: Cache winflexbison archive.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 8 Dec 2015 22:26:32 +0000 (22:26 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 8 Dec 2015 22:49:38 +0000 (22:49 +0000)
Unforunately the Appveyor -> SourceForge connection seems a bit
unreliable, causing frequent build failures while downloading
winflexbison (approx once every 2 days).

Fetching winflexbison archive into Appveyor's cache should eliminate
these.

Fetching Python modules from PyPI doesn't seem to be a problem, so they
are left alone for now, though they could eventually get the same
treatment.

appveyor.yml

index 84dc4de36b32ddf61f90b8f227943248d4c3183e..68cc368a3a1cf8899f2f25664b746416da28cbd3 100644 (file)
@@ -27,22 +27,26 @@ branches:
 clone_depth: 5
 
 cache:
+- win_flex_bison-2.4.5.zip
 - llvm-3.3.1-msvc2013-mtd.7z
 
 environment:
+  WINFLEXBISON_ARCHIVE: win_flex_bison-2.4.5.zip
   LLVM_ARCHIVE: llvm-3.3.1-msvc2013-mtd.7z
 
 install:
-# Install pip
+# Check pip
 - python --version
-- python -m ensurepip
+- python -m pip --version
 # Install Mako
 - python -m pip install --egg Mako
 # Install SCons
 - python -m pip install --egg scons==2.4.1
 - scons --version
 # Install flex/bison
-- cinst winflexbison -y
+- if not exist "%WINFLEXBISON_ARCHIVE%" appveyor DownloadFile "http://downloads.sourceforge.net/project/winflexbison/%WINFLEXBISON_ARCHIVE%"
+- 7z x -y -owinflexbison\ "%WINFLEXBISON_ARCHIVE%" > nul
+- set Path=%CD%\winflexbison;%Path%
 - win_flex --version
 - win_bison --version
 # Download and extract LLVM