]> git.phdru.name Git - cookiecutter.git/blob - project_template/tox.ini
Use coverage and tox for testing
[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     py.test
18
19 [general]
20 commands =
21     python /usr/local/bin/py.test --cov={envsitepackagesdir}/project
22
23 [testenv:py26]
24 commands = {[general]commands}
25
26 [testenv:py27]
27 commands = {[general]commands}
28
29 [testenv:py34]
30 commands = {[general]commands}
31
32 [testenv:py27-flake8]
33 deps =
34     flake8
35 commands = flake8 project scripts tests
36
37 [testenv:py34-flake8]
38 deps =
39     flake8
40 commands = flake8 project scripts tests