2 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
3 version: '{branch}-{build}'
5 # Only test master and pull requests; skip tags.
6 # Other branches can allow themselves.
10 skip_branch_with_pr: false
14 - '%LOCALAPPDATA%\pip\Cache'
24 PGPASSWORD: "Password12!"
30 PYTHON_HOME: "C:\\Python27"
34 PYTHON_HOME: "C:\\Python36-x64"
35 - TOXENV: "py27-postgres-w32"
38 PYTHON_HOME: "C:\\Python27"
40 - TOXENV: "py36-postgres-w32"
43 PYTHON_HOME: "C:\\Python36-x64"
45 - TOXENV: "py27-sqlite-w32"
48 PYTHON_HOME: "C:\\Python27"
49 - TOXENV: "py36-sqlite-w32"
52 PYTHON_HOME: "C:\\Python36-x64"
53 - TOXENV: "py27-flake8"
56 PYTHON_HOME: "C:\\Python27"
57 - TOXENV: "py34-flake8"
60 PYTHON_HOME: "C:\\Python34-x64"
63 # Ensure we use the right python version
64 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%PATH%"
65 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
67 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
69 - "pip install --upgrade pip setuptools tox ppu"
71 # No build step - we don't have C extensions
78 - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"