2 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
3 version: '{branch}-{build}'
5 # Only test maint, master and pull requests; skip tags.
6 # Other branches can allow themselves.
11 skip_branch_with_pr: false
15 - '%LOCALAPPDATA%\pip\Cache'
22 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
23 # /E:ON and /V:ON options are not enabled in the batch script intepreter
24 # See: http://stackoverflow.com/a/13751649/163740
25 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\run_with_env.cmd"
28 - PYTHON_HOME: "C:\\Python27"
32 - PYTHON_HOME: "C:\\Python27-x64"
36 - PYTHON_HOME: "C:\\Python33"
40 - PYTHON_HOME: "C:\\Python33-x64"
44 - PYTHON_HOME: "C:\\Python34"
48 - PYTHON_HOME: "C:\\Python34-x64"
52 - PYTHON_HOME: "C:\\Python35"
56 - PYTHON_HOME: "C:\\Python35-x64"
60 - PYTHON_HOME: "C:\\Python36"
64 - PYTHON_HOME: "C:\\Python36-x64"
70 # Ensure we use the right python version
71 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
72 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
74 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
78 # No build step - _namemapper extension will be built under tox
82 - "%CMD_IN_ENV% tox -e %TOX_ENV%"
85 # # If tests are successful, create binary package
86 # - "pip install wheel"
87 # - "%CMD_IN_ENV% python setup.py bdist_wheel"
91 # # Archive the generated packages in the ci.appveyor.com build report