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