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