summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-12-08 22:26:32 +0000
committerJose Fonseca <[email protected]>2015-12-08 22:49:38 +0000
commita9a0c693e5cfaf25fbda09d226d4965942baf348 (patch)
tree526880d61ad983d126d621125e150700216b52e5
parentf61ceeb3fd368cec18b13416a65a35fc233d7799 (diff)
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.
-rw-r--r--appveyor.yml10
1 files 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