]> git.phdru.name Git - m_librarian.git/blob - appveyor.yml
Test,CI: Run tests with Python 3.9
[m_librarian.git] / appveyor.yml
1 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
2 version: '{branch}-{build}'
3
4 image: Visual Studio 2019
5
6 cache:
7   - '%LOCALAPPDATA%\pip\Cache'
8
9 # Match travis
10 clone_depth: 50
11
12 environment:
13   global:
14     # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
15     # /E:ON and /V:ON options are not enabled in the batch script intepreter
16     # See: http://stackoverflow.com/a/13751649/163740
17     CMD_IN_ENV: "cmd /E:ON /V:ON /C devscripts\\CI\\run_with_env.cmd"
18
19   matrix:
20     - TOXENV: "py27-sqlite-w32"
21       PYTHON_VERSION: "2.7"
22       PYTHON_ARCH: "32"
23       PYTHON_HOME: "C:\\Python27"
24     - TOXENV: "py36-sqlite-w32"
25       PYTHON_VERSION: "3.6"
26       PYTHON_ARCH: "32"
27       PYTHON_HOME: "C:\\Python36"
28     - TOXENV: "py36-sqlite-w32"
29       PYTHON_VERSION: "3.6"
30       PYTHON_ARCH: "64"
31       PYTHON_HOME: "C:\\Python36-x64"
32     - TOXENV: "py37-sqlite-w32"
33       PYTHON_VERSION: "3.7"
34       PYTHON_ARCH: "32"
35       PYTHON_HOME: "C:\\Python37"
36     - TOXENV: "py37-sqlite-w32"
37       PYTHON_VERSION: "3.7"
38       PYTHON_ARCH: "64"
39       PYTHON_HOME: "C:\\Python37-x64"
40     - TOXENV: "py38-sqlite-w32"
41       PYTHON_VERSION: "3.8"
42       PYTHON_ARCH: "32"
43       PYTHON_HOME: "C:\\Python38"
44     - TOXENV: "py38-sqlite-w32"
45       PYTHON_VERSION: "3.8"
46       PYTHON_ARCH: "64"
47       PYTHON_HOME: "C:\\Python38-x64"
48     - TOXENV: "py39-sqlite-w32"
49       PYTHON_VERSION: "3.9"
50       PYTHON_ARCH: "32"
51       PYTHON_HOME: "C:\\Python39"
52     - TOXENV: "py39-sqlite-w32"
53       PYTHON_VERSION: "3.9"
54       PYTHON_ARCH: "64"
55       PYTHON_HOME: "C:\\Python39-x64"
56
57 install:
58   # Ensure we use the right python version
59   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
60   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
61   - "python --version"
62   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
63   - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
64   - "pip install --upgrade \"tox<3.1\" ppu"
65   - "pip --version"
66
67 # No build step
68 build: false
69
70 test_script:
71   - "%CMD_IN_ENV% tox"
72
73 after_test:
74   - remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache