]> git.phdru.name Git - cookiecutter.git/blob - project_template/tox.ini
1b17425f0e3bd958f0bf037930abe6d7fa0a7843
[cookiecutter.git] / project_template / tox.ini
1 [tox]
2 minversion = 1.8
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 sitepackages = True
21 # Don't fail or warn on uninstalled commands
22 whitelist_externals =
23     flake8
24
25 [general]
26 commands =
27     {[testenv]commands}
28     python -m pytest --cov={project}
29
30 [testenv:py27]
31 commands =
32     {[general]commands}
33
34 [testenv:py33]
35 commands =
36     {[general]commands}
37
38 [testenv:py34]
39 commands =
40     {[general]commands}
41
42 [testenv:py35]
43 commands =
44     {[general]commands}
45
46 [testenv:py36]
47 commands =
48     {[general]commands}
49
50 [testenv:py27-flake8]
51 deps =
52     flake8
53 commands =
54     {[testenv]commands}
55     flake8
56
57 [testenv:py34-flake8]
58 deps =
59     flake8
60 commands =
61     {[testenv]commands}
62     flake8