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"
27 - TOXENV: "py27-postgres-w32"
30 PYTHON_HOME: "C:\\Python27"
32 - TOXENV: "py37-postgres-w32"
35 PYTHON_HOME: "C:\\Python37-x64"
37 - TOXENV: "py27-sqlite-w32"
40 PYTHON_HOME: "C:\\Python27"
41 - TOXENV: "py37-sqlite-w32"
44 PYTHON_HOME: "C:\\Python37-x64"
45 - TOXENV: "py27-flake8"
48 PYTHON_HOME: "C:\\Python27"
49 - TOXENV: "py37-flake8"
52 PYTHON_HOME: "C:\\Python37-x64"
55 # Ensure we use the right python version
56 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%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 < 19.1\" setuptools"
61 - "pip install --upgrade \"tox < 3.1\" ppu"
64 # No build step - we don't have C extensions
71 - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"