1 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
2 version: '{branch}-{build}'
4 image: Visual Studio 2019
7 - '%LOCALAPPDATA%\pip\Cache'
14 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
15 # /E:ON and /V:ON options are not enabled in the batch script intepreter
16 # See: http://stackoverflow.com/a/13751649/163740
17 CMD_IN_ENV: "cmd /E:ON /V:ON /C devscripts\\CI\\run_with_env.cmd"
20 - TOXENV: "py27-sqlite-w32"
23 PYTHON_HOME: "C:\\Python27"
24 - TOXENV: "py36-sqlite-w32"
27 PYTHON_HOME: "C:\\Python36"
28 - TOXENV: "py36-sqlite-w32"
31 PYTHON_HOME: "C:\\Python36-x64"
32 - TOXENV: "py37-sqlite-w32"
35 PYTHON_HOME: "C:\\Python37"
36 - TOXENV: "py37-sqlite-w32"
39 PYTHON_HOME: "C:\\Python37-x64"
40 - TOXENV: "py38-sqlite-w32"
43 PYTHON_HOME: "C:\\Python38"
44 - TOXENV: "py38-sqlite-w32"
47 PYTHON_HOME: "C:\\Python38-x64"
48 - TOXENV: "py39-sqlite-w32"
51 PYTHON_HOME: "C:\\Python39"
52 - TOXENV: "py39-sqlite-w32"
55 PYTHON_HOME: "C:\\Python39-x64"
58 # Ensure we use the right python version
59 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
60 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
62 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
63 - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
64 - "pip install --upgrade \"tox>=3.15\" ppu"
74 - remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache