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"
31 - TOXENV: "py27-postgres-w32"
34 PYTHON_HOME: "C:\\Python27"
36 - TOXENV: "py37-postgres-w32"
39 PYTHON_HOME: "C:\\Python37-x64"
41 - TOXENV: "py38-postgres-w32"
44 PYTHON_HOME: "C:\\Python38-x64"
46 - TOXENV: "py27-sqlite-w32"
49 PYTHON_HOME: "C:\\Python27"
50 - TOXENV: "py37-sqlite-w32"
53 PYTHON_HOME: "C:\\Python37-x64"
54 - TOXENV: "py38-sqlite-w32"
57 PYTHON_HOME: "C:\\Python38-x64"
58 - TOXENV: "py27-flake8"
61 PYTHON_HOME: "C:\\Python27"
62 - TOXENV: "py38-flake8"
65 PYTHON_HOME: "C:\\Python38-x64"
68 # Ensure we use the right python version
69 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%PATH%"
70 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
72 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
73 - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
74 - "pip install --upgrade \"tox<3.1\" ppu"
77 # No build step - we don't have C extensions
84 - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"