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'
21 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
22 # /E:ON and /V:ON options are not enabled in the batch script intepreter
23 # See: http://stackoverflow.com/a/13751649/163740
24 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\run_with_env.cmd"
30 PYTHON_HOME: "C:\\Python27"
34 PYTHON_HOME: "C:\\Python27-x64"
38 PYTHON_HOME: "C:\\Python33"
42 PYTHON_HOME: "C:\\Python33-x64"
46 PYTHON_HOME: "C:\\Python34"
50 PYTHON_HOME: "C:\\Python34-x64"
54 PYTHON_HOME: "C:\\Python35"
58 PYTHON_HOME: "C:\\Python35-x64"
62 PYTHON_HOME: "C:\\Python36"
66 PYTHON_HOME: "C:\\Python36-x64"
69 # Ensure we use the right python version
70 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
71 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
73 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
74 - "python -m pip install --upgrade pip setuptools"
75 - "pip install --upgrade tox ppu"
78 # No build step - we don't have C extensions
85 # # If tests are successful and we've tested a tag, create binary package
86 # - if "%APPVEYOR_REPO_TAG%" == "true" (
87 # pip install --upgrade wheel &&
88 # %CMD_IN_ENV% python setup.py bdist_wheel &&
91 # - remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache
94 # # Archive the generated packages in the ci.appveyor.com build report
98 - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"