]> git.phdru.name Git - ppu.git/blob - appveyor.yml
Test,CI: Run tests with Python 3.9
[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 cache:
6   - '%LOCALAPPDATA%\pip\Cache'
7
8 # Match travis
9 clone_depth: 50
10
11 environment:
12   matrix:
13     - TOXENV: "py27"
14       PYTHON_VERSION: "2.7"
15       PYTHON_ARCH: "32"
16       PYTHON_HOME: "C:\\Python27"
17     - TOXENV: "py36"
18       PYTHON_VERSION: "3.6"
19       PYTHON_ARCH: "32"
20       PYTHON_HOME: "C:\\Python36"
21     - TOXENV: "py36"
22       PYTHON_VERSION: "3.6"
23       PYTHON_ARCH: "64"
24       PYTHON_HOME: "C:\\Python36-x64"
25     - TOXENV: "py37"
26       PYTHON_VERSION: "3.7"
27       PYTHON_ARCH: "32"
28       PYTHON_HOME: "C:\\Python37"
29     - TOXENV: "py37"
30       PYTHON_VERSION: "3.7"
31       PYTHON_ARCH: "64"
32       PYTHON_HOME: "C:\\Python37-x64"
33     - TOXENV: "py38"
34       PYTHON_VERSION: "3.8"
35       PYTHON_ARCH: "32"
36       PYTHON_HOME: "C:\\Python38"
37     - TOXENV: "py38"
38       PYTHON_VERSION: "3.8"
39       PYTHON_ARCH: "64"
40       PYTHON_HOME: "C:\\Python38-x64"
41     - TOXENV: "py39"
42       PYTHON_VERSION: "3.9"
43       PYTHON_ARCH: "32"
44       PYTHON_HOME: "C:\\Python39"
45       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
46     - TOXENV: "py39"
47       PYTHON_VERSION: "3.9"
48       PYTHON_ARCH: "64"
49       PYTHON_HOME: "C:\\Python39-x64"
50       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
51     - TOXENV: "py27-flake8"
52       PYTHON_VERSION: "2.7"
53       PYTHON_ARCH: "32"
54       PYTHON_HOME: "C:\\Python27"
55     - TOXENV: "py39-flake8"
56       PYTHON_VERSION: "3.9"
57       PYTHON_ARCH: "64"
58       PYTHON_HOME: "C:\\Python39-x64"
59       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
60
61 install:
62   # Ensure we use the right python version
63   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
64   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
65   - "python --version"
66   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
67   - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
68   - "pip install --upgrade \"tox<3.1\" ppu"
69   - "pip --version"
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   - "scripts\\remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"