]> git.phdru.name Git - sqlconvert.git/blob - appveyor.yml
Tests(CI): Reorder env vars in appveyor.yml
[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     - TOX_ENV: "py27"
28       PYTHON_VERSION: "2.7"
29       PYTHON_ARCH: "32"
30       PYTHON_HOME: "C:\\Python27"
31     - TOX_ENV: "py27"
32       PYTHON_VERSION: "2.7"
33       PYTHON_ARCH: "64"
34       PYTHON_HOME: "C:\\Python27-x64"
35     - TOX_ENV: "py34"
36       PYTHON_VERSION: "3.4"
37       PYTHON_ARCH: "32"
38       PYTHON_HOME: "C:\\Python34"
39     - TOX_ENV: "py34"
40       PYTHON_VERSION: "3.4"
41       PYTHON_ARCH: "64"
42       PYTHON_HOME: "C:\\Python34-x64"
43     - TOX_ENV: "py35"
44       PYTHON_VERSION: "3.5"
45       PYTHON_ARCH: "32"
46       PYTHON_HOME: "C:\\Python35"
47     - TOX_ENV: "py35"
48       PYTHON_VERSION: "3.5"
49       PYTHON_ARCH: "64"
50       PYTHON_HOME: "C:\\Python35-x64"
51     - TOX_ENV: "py36"
52       PYTHON_VERSION: "3.6"
53       PYTHON_ARCH: "32"
54       PYTHON_HOME: "C:\\Python36"
55     - TOX_ENV: "py36"
56       PYTHON_VERSION: "3.6"
57       PYTHON_ARCH: "64"
58       PYTHON_HOME: "C:\\Python36-x64"
59     - TOX_ENV: "py27-postgres-w32"
60       PYTHON_VERSION: "2.7"
61       PYTHON_ARCH: "32"
62       PYTHON_HOME: "C:\\Python27"
63     - TOX_ENV: "py27-postgres-w32"
64       PYTHON_VERSION: "2.7"
65       PYTHON_ARCH: "64"
66       PYTHON_HOME: "C:\\Python27-x64"
67     - TOX_ENV: "py34-postgres-w32"
68       PYTHON_VERSION: "3.4"
69       PYTHON_ARCH: "32"
70       PYTHON_HOME: "C:\\Python34"
71     - TOX_ENV: "py34-postgres-w32"
72       PYTHON_VERSION: "3.4"
73       PYTHON_ARCH: "64"
74       PYTHON_HOME: "C:\\Python34-x64"
75     - TOX_ENV: "py35-postgres-w32"
76       PYTHON_VERSION: "3.5"
77       PYTHON_ARCH: "32"
78       PYTHON_HOME: "C:\\Python35"
79     - TOX_ENV: "py35-postgres-w32"
80       PYTHON_VERSION: "3.5"
81       PYTHON_ARCH: "64"
82       PYTHON_HOME: "C:\\Python35-x64"
83     - TOX_ENV: "py36-postgres-w32"
84       PYTHON_VERSION: "3.6"
85       PYTHON_ARCH: "32"
86       PYTHON_HOME: "C:\\Python36"
87     - TOX_ENV: "py36-postgres-w32"
88       PYTHON_VERSION: "3.6"
89       PYTHON_ARCH: "64"
90       PYTHON_HOME: "C:\\Python36-x64"
91     - TOX_ENV: "py27-sqlite-w32"
92       PYTHON_VERSION: "2.7"
93       PYTHON_ARCH: "32"
94       PYTHON_HOME: "C:\\Python27"
95     - TOX_ENV: "py27-sqlite-w32"
96       PYTHON_VERSION: "2.7"
97       PYTHON_ARCH: "64"
98       PYTHON_HOME: "C:\\Python27-x64"
99     - TOX_ENV: "py34-sqlite-w32"
100       PYTHON_VERSION: "3.4"
101       PYTHON_ARCH: "32"
102       PYTHON_HOME: "C:\\Python34"
103     - TOX_ENV: "py34-sqlite-w32"
104       PYTHON_VERSION: "3.4"
105       PYTHON_ARCH: "64"
106       PYTHON_HOME: "C:\\Python34-x64"
107     - TOX_ENV: "py35-sqlite-w32"
108       PYTHON_VERSION: "3.5"
109       PYTHON_ARCH: "32"
110       PYTHON_HOME: "C:\\Python35"
111     - TOX_ENV: "py35-sqlite-w32"
112       PYTHON_VERSION: "3.5"
113       PYTHON_ARCH: "64"
114       PYTHON_HOME: "C:\\Python35-x64"
115     - TOX_ENV: "py36-sqlite-w32"
116       PYTHON_VERSION: "3.6"
117       PYTHON_ARCH: "32"
118       PYTHON_HOME: "C:\\Python36"
119     - TOX_ENV: "py36-sqlite-w32"
120       PYTHON_VERSION: "3.6"
121       PYTHON_ARCH: "64"
122       PYTHON_HOME: "C:\\Python36-x64"
123     - TOX_ENV: "py27-flake8"
124       PYTHON_VERSION: "2.7"
125       PYTHON_ARCH: "32"
126       PYTHON_HOME: "C:\\Python27"
127     - TOX_ENV: "py34-flake8"
128       PYTHON_VERSION: "3.4"
129       PYTHON_ARCH: "64"
130       PYTHON_HOME: "C:\\Python34-x64"
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"