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