]> git.phdru.name Git - ppu.git/blob - appveyor.yml
Docs: Add rebuild script
[ppu.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 environment:
20   matrix:
21     - TOXENV: "py27"
22       PYTHON_VERSION: "2.7"
23       PYTHON_ARCH: "32"
24       PYTHON_HOME: "C:\\Python27"
25     - TOXENV: "py27"
26       PYTHON_VERSION: "2.7"
27       PYTHON_ARCH: "64"
28       PYTHON_HOME: "C:\\Python27-x64"
29     - TOXENV: "py33"
30       PYTHON_VERSION: "3.3"
31       PYTHON_ARCH: "32"
32       PYTHON_HOME: "C:\\Python33"
33     - TOXENV: "py33"
34       PYTHON_VERSION: "3.3"
35       PYTHON_ARCH: "64"
36       PYTHON_HOME: "C:\\Python33-x64"
37     - TOXENV: "py34"
38       PYTHON_VERSION: "3.4"
39       PYTHON_ARCH: "32"
40       PYTHON_HOME: "C:\\Python34"
41     - TOXENV: "py34"
42       PYTHON_VERSION: "3.4"
43       PYTHON_ARCH: "64"
44       PYTHON_HOME: "C:\\Python34-x64"
45     - TOXENV: "py35"
46       PYTHON_VERSION: "3.5"
47       PYTHON_ARCH: "32"
48       PYTHON_HOME: "C:\\Python35"
49     - TOXENV: "py35"
50       PYTHON_VERSION: "3.5"
51       PYTHON_ARCH: "64"
52       PYTHON_HOME: "C:\\Python35-x64"
53     - TOXENV: "py36"
54       PYTHON_VERSION: "3.6"
55       PYTHON_ARCH: "32"
56       PYTHON_HOME: "C:\\Python36"
57     - TOXENV: "py36"
58       PYTHON_VERSION: "3.6"
59       PYTHON_ARCH: "64"
60       PYTHON_HOME: "C:\\Python36-x64"
61     - TOXENV: "py27-flake8"
62       PYTHON_VERSION: "2.7"
63       PYTHON_ARCH: "32"
64       PYTHON_HOME: "C:\\Python27"
65     - TOXENV: "py34-flake8"
66       PYTHON_VERSION: "3.4"
67       PYTHON_ARCH: "64"
68       PYTHON_HOME: "C:\\Python34-x64"
69
70 install:
71   # Ensure we use the right python version
72   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
73   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
74   - "python --version"
75   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
76   - "pip --version"
77   - "pip install --upgrade pip setuptools tox"
78
79 # No build step - we don't have C extensions
80 build: false
81
82 test_script:
83   - "tox"
84
85 after_test:
86   - "scripts\\remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"