]> git.phdru.name Git - sqlconvert.git/blob - appveyor.yml
Use ppu to cleanup pip cache
[sqlconvert.git] / appveyor.yml
1 # Test on windows
2 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
3 version: '{branch}-{build}'
4
5 # Only test master and pull requests; skip tags.
6 # Other branches can allow themselves.
7 branches:
8   only:
9     - master
10 skip_branch_with_pr: false
11 skip_tags: true
12
13 cache:
14   - '%LOCALAPPDATA%\pip\Cache'
15
16 # Match travis
17 clone_depth: 50
18
19 services:
20   - postgresql
21
22 environment:
23   PGUSER: "postgres"
24   PGPASSWORD: "Password12!"
25
26   matrix:
27     - PYTHON_HOME: "C:\\Python27"
28       PYTHON_VERSION: "2.7"
29       PYTHON_ARCH: "32"
30       TOX_ENV: "py27"
31     - PYTHON_HOME: "C:\\Python27-x64"
32       PYTHON_VERSION: "2.7"
33       PYTHON_ARCH: "64"
34       TOX_ENV: "py27"
35     - PYTHON_HOME: "C:\\Python34"
36       PYTHON_VERSION: "3.4"
37       PYTHON_ARCH: "32"
38       TOX_ENV: "py34"
39     - PYTHON_HOME: "C:\\Python34-x64"
40       PYTHON_VERSION: "3.4"
41       PYTHON_ARCH: "64"
42       TOX_ENV: "py34"
43     - PYTHON_HOME: "C:\\Python35"
44       PYTHON_VERSION: "3.5"
45       PYTHON_ARCH: "32"
46       TOX_ENV: "py35"
47     - PYTHON_HOME: "C:\\Python35-x64"
48       PYTHON_VERSION: "3.5"
49       PYTHON_ARCH: "64"
50       TOX_ENV: "py35"
51     - PYTHON_HOME: "C:\\Python36"
52       PYTHON_VERSION: "3.6"
53       PYTHON_ARCH: "32"
54       TOX_ENV: "py36"
55     - PYTHON_HOME: "C:\\Python36-x64"
56       PYTHON_VERSION: "3.6"
57       PYTHON_ARCH: "64"
58       TOX_ENV: "py36"
59     - PYTHON_HOME: "C:\\Python27"
60       PYTHON_VERSION: "2.7"
61       PYTHON_ARCH: "32"
62       TOX_ENV: "py27-postgres-w32"
63     - PYTHON_HOME: "C:\\Python27-x64"
64       PYTHON_VERSION: "2.7"
65       PYTHON_ARCH: "64"
66       TOX_ENV: "py27-postgres-w32"
67     - PYTHON_HOME: "C:\\Python34"
68       PYTHON_VERSION: "3.4"
69       PYTHON_ARCH: "32"
70       TOX_ENV: "py34-postgres-w32"
71     - PYTHON_HOME: "C:\\Python34-x64"
72       PYTHON_VERSION: "3.4"
73       PYTHON_ARCH: "64"
74       TOX_ENV: "py34-postgres-w32"
75     - PYTHON_HOME: "C:\\Python35"
76       PYTHON_VERSION: "3.5"
77       PYTHON_ARCH: "32"
78       TOX_ENV: "py35-postgres-w32"
79     - PYTHON_HOME: "C:\\Python35-x64"
80       PYTHON_VERSION: "3.5"
81       PYTHON_ARCH: "64"
82       TOX_ENV: "py35-postgres-w32"
83     - PYTHON_HOME: "C:\\Python36"
84       PYTHON_VERSION: "3.6"
85       PYTHON_ARCH: "32"
86       TOX_ENV: "py36-postgres-w32"
87     - PYTHON_HOME: "C:\\Python36-x64"
88       PYTHON_VERSION: "3.6"
89       PYTHON_ARCH: "64"
90       TOX_ENV: "py36-postgres-w32"
91     - PYTHON_HOME: "C:\\Python27"
92       PYTHON_VERSION: "2.7"
93       PYTHON_ARCH: "32"
94       TOX_ENV: "py27-sqlite-w32"
95     - PYTHON_HOME: "C:\\Python27-x64"
96       PYTHON_VERSION: "2.7"
97       PYTHON_ARCH: "64"
98       TOX_ENV: "py27-sqlite-w32"
99     - PYTHON_HOME: "C:\\Python34"
100       PYTHON_VERSION: "3.4"
101       PYTHON_ARCH: "32"
102       TOX_ENV: "py34-sqlite-w32"
103     - PYTHON_HOME: "C:\\Python34-x64"
104       PYTHON_VERSION: "3.4"
105       PYTHON_ARCH: "64"
106       TOX_ENV: "py34-sqlite-w32"
107     - PYTHON_HOME: "C:\\Python35"
108       PYTHON_VERSION: "3.5"
109       PYTHON_ARCH: "32"
110       TOX_ENV: "py35-sqlite-w32"
111     - PYTHON_HOME: "C:\\Python35-x64"
112       PYTHON_VERSION: "3.5"
113       PYTHON_ARCH: "64"
114       TOX_ENV: "py35-sqlite-w32"
115     - PYTHON_HOME: "C:\\Python36"
116       PYTHON_VERSION: "3.6"
117       PYTHON_ARCH: "32"
118       TOX_ENV: "py36-sqlite-w32"
119     - PYTHON_HOME: "C:\\Python36-x64"
120       PYTHON_VERSION: "3.6"
121       PYTHON_ARCH: "64"
122       TOX_ENV: "py36-sqlite-w32"
123     - PYTHON_HOME: "C:\\Python27"
124       PYTHON_VERSION: "2.7"
125       PYTHON_ARCH: "32"
126       TOX_ENV: "py27-flake8"
127     - PYTHON_HOME: "C:\\Python34-x64"
128       PYTHON_VERSION: "3.4"
129       PYTHON_ARCH: "64"
130       TOX_ENV: "py34-flake8"
131
132 install:
133   # Ensure we use the right python version
134   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%PATH%"
135   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
136   - "python --version"
137   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
138   - "pip --version"
139   - "pip install tox ppu"
140
141 # No build step - we don't have C extensions
142 build: false
143
144 test_script:
145   - "tox -e %TOX_ENV%"
146
147 after_test:
148   - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"