]> git.phdru.name Git - cookiecutter.git/blob - project_template/tox.ini
Simplify tox.ini: call pytest with the current python
[cookiecutter.git] / project_template / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = {py26,py27,py34},{py27,py34}-flake8
4
5 # Base test environment settings
6 [testenv]
7 deps =
8     pytest
9     pytest-cov
10     py26: argparse
11     py26,py27: m_lib>=2.0
12     py34: m_lib>=3.0
13 sitepackages = True
14 # Don't fail or warn on uninstalled commands
15 whitelist_externals =
16     flake8
17
18 [general]
19 commands =
20     python -m pytest --cov={project}
21
22 [testenv:py26]
23 commands = {[general]commands}
24
25 [testenv:py27]
26 commands = {[general]commands}
27
28 [testenv:py34]
29 commands = {[general]commands}
30
31 [testenv:py27-flake8]
32 deps =
33     flake8
34 commands = flake8 {project} scripts tests
35
36 [testenv:py34-flake8]
37 deps =
38     flake8
39 commands = flake8 {project} scripts tests