2 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
3 version: '{branch}-{build}'
5 # Only test master and pull requests; skip tags.
6 # Other branches can allow themselves.
10 skip_branch_with_pr: false
14 - '%LOCALAPPDATA%\pip\Cache'
24 PYTHON_HOME: "C:\\Python27"
28 PYTHON_HOME: "C:\\Python27-x64"
32 PYTHON_HOME: "C:\\Python33"
36 PYTHON_HOME: "C:\\Python33-x64"
40 PYTHON_HOME: "C:\\Python34"
44 PYTHON_HOME: "C:\\Python34-x64"
48 PYTHON_HOME: "C:\\Python35"
52 PYTHON_HOME: "C:\\Python35-x64"
56 PYTHON_HOME: "C:\\Python36"
60 PYTHON_HOME: "C:\\Python36-x64"
61 - TOXENV: "py27-flake8"
64 PYTHON_HOME: "C:\\Python27"
65 - TOXENV: "py34-flake8"
68 PYTHON_HOME: "C:\\Python34-x64"
71 # Ensure we use the right python version
72 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
73 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
75 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
77 - "pip install --upgrade pip setuptools tox"
79 # No build step - we don't have C extensions
86 - "scripts\\remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"