2 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
3 version: '{branch}-{build}'
6 - '%LOCALAPPDATA%\pip\Cache'
16 PGPASSWORD: "Password12!"
22 PYTHON_HOME: "C:\\Python27"
26 PYTHON_HOME: "C:\\Python37-x64"
30 PYTHON_HOME: "C:\\Python38-x64"
34 PYTHON_HOME: "C:\\Python39"
35 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
39 PYTHON_HOME: "C:\\Python39-x64"
40 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
41 - TOXENV: "py27-postgres-w32"
44 PYTHON_HOME: "C:\\Python27"
46 - TOXENV: "py37-postgres-w32"
49 PYTHON_HOME: "C:\\Python37-x64"
51 - TOXENV: "py38-postgres-w32"
54 PYTHON_HOME: "C:\\Python38-x64"
56 - TOXENV: "py39-postgres-w32"
59 PYTHON_HOME: "C:\\Python39"
61 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
62 - TOXENV: "py39-postgres-w32"
65 PYTHON_HOME: "C:\\Python39-x64"
67 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
68 - TOXENV: "py27-sqlite-w32"
71 PYTHON_HOME: "C:\\Python27"
72 - TOXENV: "py37-sqlite-w32"
75 PYTHON_HOME: "C:\\Python37-x64"
76 - TOXENV: "py38-sqlite-w32"
79 PYTHON_HOME: "C:\\Python38-x64"
80 - TOXENV: "py39-sqlite-w32"
83 PYTHON_HOME: "C:\\Python39"
84 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
85 - TOXENV: "py39-sqlite-w32"
88 PYTHON_HOME: "C:\\Python39-x64"
89 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
90 - TOXENV: "py27-flake8"
93 PYTHON_HOME: "C:\\Python27"
94 - TOXENV: "py39-flake8"
97 PYTHON_HOME: "C:\\Python39-x64"
100 # Ensure we use the right python version
101 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%PATH%"
102 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
104 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
105 - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
106 - "pip install --upgrade \"tox>=3.15\" ppu"
109 # No build step - we don't have C extensions
116 - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"