]> git.phdru.name Git - sqlconvert.git/blob - appveyor.yml
Build(setup.py): Use python_version marker and python_requires keyword
[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       db: postgresql
64     - TOX_ENV: "py27-postgres-w32"
65       PYTHON_VERSION: "2.7"
66       PYTHON_ARCH: "64"
67       PYTHON_HOME: "C:\\Python27-x64"
68       db: postgresql
69     - TOX_ENV: "py34-postgres-w32"
70       PYTHON_VERSION: "3.4"
71       PYTHON_ARCH: "32"
72       PYTHON_HOME: "C:\\Python34"
73       db: postgresql
74     - TOX_ENV: "py34-postgres-w32"
75       PYTHON_VERSION: "3.4"
76       PYTHON_ARCH: "64"
77       PYTHON_HOME: "C:\\Python34-x64"
78       db: postgresql
79     - TOX_ENV: "py35-postgres-w32"
80       PYTHON_VERSION: "3.5"
81       PYTHON_ARCH: "32"
82       PYTHON_HOME: "C:\\Python35"
83       db: postgresql
84     - TOX_ENV: "py35-postgres-w32"
85       PYTHON_VERSION: "3.5"
86       PYTHON_ARCH: "64"
87       PYTHON_HOME: "C:\\Python35-x64"
88       db: postgresql
89     - TOX_ENV: "py36-postgres-w32"
90       PYTHON_VERSION: "3.6"
91       PYTHON_ARCH: "32"
92       PYTHON_HOME: "C:\\Python36"
93       db: postgresql
94     - TOX_ENV: "py36-postgres-w32"
95       PYTHON_VERSION: "3.6"
96       PYTHON_ARCH: "64"
97       PYTHON_HOME: "C:\\Python36-x64"
98       db: postgresql
99     - TOX_ENV: "py27-sqlite-w32"
100       PYTHON_VERSION: "2.7"
101       PYTHON_ARCH: "32"
102       PYTHON_HOME: "C:\\Python27"
103     - TOX_ENV: "py27-sqlite-w32"
104       PYTHON_VERSION: "2.7"
105       PYTHON_ARCH: "64"
106       PYTHON_HOME: "C:\\Python27-x64"
107     - TOX_ENV: "py34-sqlite-w32"
108       PYTHON_VERSION: "3.4"
109       PYTHON_ARCH: "32"
110       PYTHON_HOME: "C:\\Python34"
111     - TOX_ENV: "py34-sqlite-w32"
112       PYTHON_VERSION: "3.4"
113       PYTHON_ARCH: "64"
114       PYTHON_HOME: "C:\\Python34-x64"
115     - TOX_ENV: "py35-sqlite-w32"
116       PYTHON_VERSION: "3.5"
117       PYTHON_ARCH: "32"
118       PYTHON_HOME: "C:\\Python35"
119     - TOX_ENV: "py35-sqlite-w32"
120       PYTHON_VERSION: "3.5"
121       PYTHON_ARCH: "64"
122       PYTHON_HOME: "C:\\Python35-x64"
123     - TOX_ENV: "py36-sqlite-w32"
124       PYTHON_VERSION: "3.6"
125       PYTHON_ARCH: "32"
126       PYTHON_HOME: "C:\\Python36"
127     - TOX_ENV: "py36-sqlite-w32"
128       PYTHON_VERSION: "3.6"
129       PYTHON_ARCH: "64"
130       PYTHON_HOME: "C:\\Python36-x64"
131     - TOX_ENV: "py27-flake8"
132       PYTHON_VERSION: "2.7"
133       PYTHON_ARCH: "32"
134       PYTHON_HOME: "C:\\Python27"
135     - TOX_ENV: "py34-flake8"
136       PYTHON_VERSION: "3.4"
137       PYTHON_ARCH: "64"
138       PYTHON_HOME: "C:\\Python34-x64"
139
140 install:
141   # Ensure we use the right python version
142   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%PATH%"
143   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
144   - "python --version"
145   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
146   - "pip --version"
147   - "pip install --upgrade pip setuptools tox ppu"
148
149 # No build step - we don't have C extensions
150 build: false
151
152 test_script:
153   - "tox -e %TOX_ENV%"
154
155 after_test:
156   - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"