]> git.phdru.name Git - cookiecutter.git/blob - project_template/appveyor.yml
Fix tox.ini: add envs for Python 3.3, 3.5, 3.6
[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 # Only test master and pull requests; skip tags.
6 # Other branches can allow themselves.
7 branches:
8   only:
9     - master
10 skip_branch_with_pr: false
11 skip_tags: true
12
13 cache:
14   - '%LOCALAPPDATA%\pip\Cache'
15
16 # Match travis
17 clone_depth: 50
18
19 environment:
20   global:
21     # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
22     # /E:ON and /V:ON options are not enabled in the batch script intepreter
23     # See: http://stackoverflow.com/a/13751649/163740
24     CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\run_with_env.cmd"
25
26   matrix:
27     - PYTHON_HOME: "C:\\Python27"
28       PYTHON_VERSION: "2.7"
29       PYTHON_ARCH: "32"
30       TOX_ENV: "py27"
31     - PYTHON_HOME: "C:\\Python27-x64"
32       PYTHON_VERSION: "2.7"
33       PYTHON_ARCH: "64"
34       TOX_ENV: "py27"
35     - PYTHON_HOME: "C:\\Python33"
36       PYTHON_VERSION: "3.3"
37       PYTHON_ARCH: "32"
38       TOX_ENV: "py33"
39     - PYTHON_HOME: "C:\\Python33-x64"
40       PYTHON_VERSION: "3.3"
41       PYTHON_ARCH: "64"
42       TOX_ENV: "py33"
43     - PYTHON_HOME: "C:\\Python34"
44       PYTHON_VERSION: "3.4"
45       PYTHON_ARCH: "32"
46       TOX_ENV: "py34"
47     - PYTHON_HOME: "C:\\Python34-x64"
48       PYTHON_VERSION: "3.4"
49       PYTHON_ARCH: "64"
50       TOX_ENV: "py34"
51     - PYTHON_HOME: "C:\\Python35"
52       PYTHON_VERSION: "3.5"
53       PYTHON_ARCH: "32"
54       TOX_ENV: "py35"
55     - PYTHON_HOME: "C:\\Python35-x64"
56       PYTHON_VERSION: "3.5"
57       PYTHON_ARCH: "64"
58       TOX_ENV: "py35"
59     - PYTHON_HOME: "C:\\Python36"
60       PYTHON_VERSION: "3.6"
61       PYTHON_ARCH: "32"
62       TOX_ENV: "py36"
63     - PYTHON_HOME: "C:\\Python36-x64"
64       PYTHON_VERSION: "3.6"
65       PYTHON_ARCH: "64"
66       TOX_ENV: "py36"
67
68 install:
69   # Ensure we use the right python version
70   - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
71   - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
72   - "python --version"
73   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
74   - "pip --version"
75   - "pip install tox"
76
77 # No build step - _namemapper extension will be built under tox
78 build: false
79
80 test_script:
81   - "%CMD_IN_ENV% tox -e %TOX_ENV%"
82
83 #after_test:
84 #  # If tests are successful, create binary package
85 #  - "pip install wheel"
86 #  - "%CMD_IN_ENV% python setup.py bdist_wheel"
87 #  - ps: "ls dist"
88 #
89 #artifacts:
90 #  # Archive the generated packages in the ci.appveyor.com build report
91 #  - path: dist\*