]> git.phdru.name Git - cookiecutter.git/blob - project_template/appveyor.yml
Fix(mk-project): `sed` requires `s` for substitute
[cookiecutter.git] / project_template / 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   global:
13     # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
14     # /E:ON and /V:ON options are not enabled in the batch script intepreter
15     # See: http://stackoverflow.com/a/13751649/163740
16     CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\run_with_env.cmd"
17
18   matrix:
19     - TOXENV: "py27"
20       PYTHON_VERSION: "2.7"
21       PYTHON_ARCH: "32"
22       PYTHON_HOME: "C:\\Python27"
23     - TOXENV: "py27"
24       PYTHON_VERSION: "2.7"
25       PYTHON_ARCH: "64"
26       PYTHON_HOME: "C:\\Python27-x64"
27     - TOXENV: "py34"
28       PYTHON_VERSION: "3.4"
29       PYTHON_ARCH: "32"
30       PYTHON_HOME: "C:\\Python34"
31     - TOXENV: "py34"
32       PYTHON_VERSION: "3.4"
33       PYTHON_ARCH: "64"
34       PYTHON_HOME: "C:\\Python34-x64"
35     - TOXENV: "py35"
36       PYTHON_VERSION: "3.5"
37       PYTHON_ARCH: "32"
38       PYTHON_HOME: "C:\\Python35"
39     - TOXENV: "py35"
40       PYTHON_VERSION: "3.5"
41       PYTHON_ARCH: "64"
42       PYTHON_HOME: "C:\\Python35-x64"
43     - TOXENV: "py36"
44       PYTHON_VERSION: "3.6"
45       PYTHON_ARCH: "32"
46       PYTHON_HOME: "C:\\Python36"
47     - TOXENV: "py36"
48       PYTHON_VERSION: "3.6"
49       PYTHON_ARCH: "64"
50       PYTHON_HOME: "C:\\Python36-x64"
51     - TOXENV: "py37"
52       PYTHON_VERSION: "3.7"
53       PYTHON_ARCH: "32"
54       PYTHON_HOME: "C:\\Python37"
55     - TOXENV: "py37"
56       PYTHON_VERSION: "3.7"
57       PYTHON_ARCH: "64"
58       PYTHON_HOME: "C:\\Python37-x64"
59
60 install:
61   # Ensure we use the right python version
62   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
63   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
64   - "python --version"
65   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
66   - "python -m pip install --upgrade \"pip < 19.1\" setuptools"
67   - "pip install --upgrade \"tox < 3.1\" ppu"
68   - "pip --version"
69
70 # No build step - we don't have C extensions
71 build: false
72
73 test_script:
74   - "%CMD_IN_ENV% tox"
75
76 #after_test:
77 #  # If tests are successful and we've tested a tag, create binary package
78 #  - if "%APPVEYOR_REPO_TAG%" == "true" (
79 #      pip install --upgrade wheel &&
80 #      %CMD_IN_ENV% python setup.py bdist_wheel &&
81 #      ls dist
82 #    )
83 #  - remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache
84 #
85 #artifacts:
86 #  # Archive the generated packages in the ci.appveyor.com build report
87 #  - path: dist\*
88
89 after_test:
90   - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"