]> git.phdru.name Git - m_librarian.git/blob - appveyor.yml
Fix(DB): Fix bug with adding same genre to book
[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 cache:
5   - '%LOCALAPPDATA%\pip\Cache'
6
7 # Match travis
8 clone_depth: 50
9
10 environment:
11   global:
12     # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
13     # /E:ON and /V:ON options are not enabled in the batch script intepreter
14     # See: http://stackoverflow.com/a/13751649/163740
15     CMD_IN_ENV: "cmd /E:ON /V:ON /C devscripts\\CI\\run_with_env.cmd"
16
17   matrix:
18     - TOXENV: "py27-sqlite-w32"
19       PYTHON_VERSION: "2.7"
20       PYTHON_ARCH: "32"
21       PYTHON_HOME: "C:\\Python27"
22     - TOXENV: "py36-sqlite-w32"
23       PYTHON_VERSION: "3.6"
24       PYTHON_ARCH: "32"
25       PYTHON_HOME: "C:\\Python36"
26     - TOXENV: "py36-sqlite-w32"
27       PYTHON_VERSION: "3.6"
28       PYTHON_ARCH: "64"
29       PYTHON_HOME: "C:\\Python36-x64"
30     - TOXENV: "py37-sqlite-w32"
31       PYTHON_VERSION: "3.7"
32       PYTHON_ARCH: "32"
33       PYTHON_HOME: "C:\\Python37"
34     - TOXENV: "py37-sqlite-w32"
35       PYTHON_VERSION: "3.7"
36       PYTHON_ARCH: "64"
37       PYTHON_HOME: "C:\\Python37-x64"
38     - TOXENV: "py38-sqlite-w32"
39       PYTHON_VERSION: "3.8"
40       PYTHON_ARCH: "32"
41       PYTHON_HOME: "C:\\Python38"
42     - TOXENV: "py38-sqlite-w32"
43       PYTHON_VERSION: "3.8"
44       PYTHON_ARCH: "64"
45       PYTHON_HOME: "C:\\Python38-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<21\" \"setuptools<44\""
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