]> git.phdru.name Git - sqlconvert.git/blob - appveyor.yml
CI: Run tests at AppVeyor with Python 2.7 32bit and 3.6 64bit
[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     - TOXENV: "py27"
28       PYTHON_VERSION: "2.7"
29       PYTHON_ARCH: "32"
30       PYTHON_HOME: "C:\\Python27"
31     - TOXENV: "py36"
32       PYTHON_VERSION: "3.6"
33       PYTHON_ARCH: "64"
34       PYTHON_HOME: "C:\\Python36-x64"
35     - TOXENV: "py27-postgres-w32"
36       PYTHON_VERSION: "2.7"
37       PYTHON_ARCH: "32"
38       PYTHON_HOME: "C:\\Python27"
39       db: postgresql
40     - TOXENV: "py36-postgres-w32"
41       PYTHON_VERSION: "3.6"
42       PYTHON_ARCH: "64"
43       PYTHON_HOME: "C:\\Python36-x64"
44       db: postgresql
45     - TOXENV: "py27-sqlite-w32"
46       PYTHON_VERSION: "2.7"
47       PYTHON_ARCH: "32"
48       PYTHON_HOME: "C:\\Python27"
49     - TOXENV: "py36-sqlite-w32"
50       PYTHON_VERSION: "3.6"
51       PYTHON_ARCH: "64"
52       PYTHON_HOME: "C:\\Python36-x64"
53     - TOXENV: "py27-flake8"
54       PYTHON_VERSION: "2.7"
55       PYTHON_ARCH: "32"
56       PYTHON_HOME: "C:\\Python27"
57     - TOXENV: "py34-flake8"
58       PYTHON_VERSION: "3.4"
59       PYTHON_ARCH: "64"
60       PYTHON_HOME: "C:\\Python34-x64"
61
62 install:
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"
66   - "python --version"
67   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
68   - "pip --version"
69   - "pip install --upgrade pip setuptools tox ppu"
70
71 # No build step - we don't have C extensions
72 build: false
73
74 test_script:
75   - "tox"
76
77 after_test:
78   - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"