]> git.phdru.name Git - cookiecutter.git/blob - project_template/tox.ini
CI(appveyor.yml): Clear `pip` cache with `remove-old-files.py`
[cookiecutter.git] / project_template / tox.ini
1 [tox]
2 minversion = 2.0
3 toxworkdir={homedir}/.tox/{project}
4 envlist = {py27,py33,py34,py35,py36},{py27,py34}-flake8
5
6 # Base test environment settings
7 [testenv]
8 basepython =
9     py27: {env:TOXPYTHON:python2.7}
10     py33: {env:TOXPYTHON:python3.3}
11     py34: {env:TOXPYTHON:python3.4}
12     py35: {env:TOXPYTHON:python3.5}
13     py36: {env:TOXPYTHON:python3.6}
14     pypy: {env:TOXPYTHON:pypy}
15 commands =
16     {envpython} --version
17     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
18 deps =
19     -rdevscripts/requirements/requirements_tests.txt
20 platform = linux
21 sitepackages = True
22 # Don't fail or warn on uninstalled commands
23 whitelist_externals =
24     flake8
25
26 [general]
27 commands =
28     {[testenv]commands}
29     python -m pytest --cov={project}
30
31 [testenv:py27]
32 commands =
33     {[general]commands}
34
35 [testenv:py33]
36 commands =
37     {[general]commands}
38
39 [testenv:py34]
40 commands =
41     {[general]commands}
42
43 [testenv:py35]
44 commands =
45     {[general]commands}
46
47 [testenv:py36]
48 commands =
49     {[general]commands}
50
51 [testenv:py27-flake8]
52 deps =
53     flake8
54 commands =
55     {[testenv]commands}
56     flake8
57
58 [testenv:py34-flake8]
59 deps =
60     flake8
61 commands =
62     {[testenv]commands}
63     flake8