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'
11 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
12 # /E:ON and /V:ON options are not enabled in the batch script intepreter
13 # See: http://stackoverflow.com/a/13751649/163740
14 CMD_IN_ENV: "cmd /E:ON /V:ON /C devscripts\\CI\\run_with_env.cmd"
17 - TOXENV: "py27-sqlite-w32"
20 PYTHON_HOME: "C:\\Python27"
21 - TOXENV: "py36-sqlite-w32"
24 PYTHON_HOME: "C:\\Python36"
25 - TOXENV: "py36-sqlite-w32"
28 PYTHON_HOME: "C:\\Python36-x64"
29 - TOXENV: "py37-sqlite-w32"
32 PYTHON_HOME: "C:\\Python37"
33 - TOXENV: "py37-sqlite-w32"
36 PYTHON_HOME: "C:\\Python37-x64"
37 - TOXENV: "py38-sqlite-w32"
40 PYTHON_HOME: "C:\\Python38"
41 - TOXENV: "py38-sqlite-w32"
44 PYTHON_HOME: "C:\\Python38-x64"
45 - TOXENV: "py39-sqlite-w32"
48 PYTHON_HOME: "C:\\Python39"
49 - TOXENV: "py39-sqlite-w32"
52 PYTHON_HOME: "C:\\Python39-x64"
55 # Ensure we use the right python version
56 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
57 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
59 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
60 - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
61 - "pip install --upgrade \"tox>=3.15\" ppu"
71 - remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache