]> git.phdru.name Git - sqlconvert.git/blob - appveyor.yml
b6d29f8005d58d29c06bdb3fef7ff959a849d541
[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 cache:
6   - '%LOCALAPPDATA%\pip\Cache'
7
8 # Match travis
9 clone_depth: 50
10
11 services:
12   - postgresql
13
14 environment:
15   PGUSER: "postgres"
16   PGPASSWORD: "Password12!"
17
18   matrix:
19     - TOXENV: "py27"
20       PYTHON_VERSION: "2.7"
21       PYTHON_ARCH: "32"
22       PYTHON_HOME: "C:\\Python27"
23     - TOXENV: "py37"
24       PYTHON_VERSION: "3.7"
25       PYTHON_ARCH: "64"
26       PYTHON_HOME: "C:\\Python37-x64"
27     - TOXENV: "py38"
28       PYTHON_VERSION: "3.8"
29       PYTHON_ARCH: "64"
30       PYTHON_HOME: "C:\\Python38-x64"
31     - TOXENV: "py27-postgres-w32"
32       PYTHON_VERSION: "2.7"
33       PYTHON_ARCH: "32"
34       PYTHON_HOME: "C:\\Python27"
35       db: postgresql
36     - TOXENV: "py37-postgres-w32"
37       PYTHON_VERSION: "3.7"
38       PYTHON_ARCH: "64"
39       PYTHON_HOME: "C:\\Python37-x64"
40       db: postgresql
41     - TOXENV: "py38-postgres-w32"
42       PYTHON_VERSION: "3.8"
43       PYTHON_ARCH: "64"
44       PYTHON_HOME: "C:\\Python38-x64"
45       db: postgresql
46     - TOXENV: "py27-sqlite-w32"
47       PYTHON_VERSION: "2.7"
48       PYTHON_ARCH: "32"
49       PYTHON_HOME: "C:\\Python27"
50     - TOXENV: "py37-sqlite-w32"
51       PYTHON_VERSION: "3.7"
52       PYTHON_ARCH: "64"
53       PYTHON_HOME: "C:\\Python37-x64"
54     - TOXENV: "py38-sqlite-w32"
55       PYTHON_VERSION: "3.8"
56       PYTHON_ARCH: "64"
57       PYTHON_HOME: "C:\\Python38-x64"
58     - TOXENV: "py27-flake8"
59       PYTHON_VERSION: "2.7"
60       PYTHON_ARCH: "32"
61       PYTHON_HOME: "C:\\Python27"
62     - TOXENV: "py38-flake8"
63       PYTHON_VERSION: "3.8"
64       PYTHON_ARCH: "64"
65       PYTHON_HOME: "C:\\Python38-x64"
66
67 install:
68   # Ensure we use the right python version
69   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;C:\\Program Files\\PostgreSQL\\9.5\\bin;%PATH%"
70   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
71   - "python --version"
72   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
73   - "python -m pip install --upgrade \"pip<19.1\" \"setuptools<44\""
74   - "pip install --upgrade \"tox<3.1\" ppu"
75   - "pip --version"
76
77 # No build step - we don't have C extensions
78 build: false
79
80 test_script:
81   - "tox"
82
83 after_test:
84   - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"