From a9a0c693e5cfaf25fbda09d226d4965942baf348 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Tue, 8 Dec 2015 22:26:32 +0000 Subject: [PATCH] appveyor: Cache winflexbison archive. 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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 84dc4de36b3..68cc368a3a1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 -- 2.30.2