]> git.phdru.name Git - ppu.git/blob - appveyor.yml
CI: Require pip < 19.1 for Python 2.7 and 3.4
[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: "py36"
26       PYTHON_VERSION: "3.6"
27       PYTHON_ARCH: "32"
28       PYTHON_HOME: "C:\\Python36"
29     - TOXENV: "py36"
30       PYTHON_VERSION: "3.6"
31       PYTHON_ARCH: "64"
32       PYTHON_HOME: "C:\\Python36-x64"
33     - TOXENV: "py37"
34       PYTHON_VERSION: "3.7"
35       PYTHON_ARCH: "32"
36       PYTHON_HOME: "C:\\Python37"
37     - TOXENV: "py37"
38       PYTHON_VERSION: "3.7"
39       PYTHON_ARCH: "64"
40       PYTHON_HOME: "C:\\Python37-x64"
41     - TOXENV: "py27-flake8"
42       PYTHON_VERSION: "2.7"
43       PYTHON_ARCH: "32"
44       PYTHON_HOME: "C:\\Python27"
45     - TOXENV: "py37-flake8"
46       PYTHON_VERSION: "3.7"
47       PYTHON_ARCH: "64"
48       PYTHON_HOME: "C:\\Python37-x64"
49
50 install:
51   # Ensure we use the right python version
52   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
53   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
54   - "python --version"
55   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
56   - "python -m pip install --upgrade \"pip < 19.1\" setuptools"
57   - "pip install --upgrade \"tox < 3.1\" ppu"
58   - "pip --version"
59
60 # No build step - we don't have C extensions
61 build: false
62
63 test_script:
64   - "tox"
65
66 after_test:
67   - "scripts\\remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"