]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Simplify tox.ini: call pytest with the current python
[m_librarian.git] / 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: SQLObject>=2.2.1
12     py34: SQLObject>=3.0.0
13     py26,py27: m_lib>=2.0
14     py34: m_lib>=3.0
15 sitepackages = True
16 # Don't fail or warn on uninstalled commands
17 whitelist_externals =
18     flake8
19     py.test
20
21 [general]
22 commands =
23     python -m pytest --cov=m_librarian
24
25 [testenv:py26]
26 commands = {[general]commands}
27
28 [testenv:py27]
29 commands = {[general]commands}
30
31 [testenv:py34]
32 commands = {[general]commands}
33
34 [testenv:py27-flake8]
35 deps =
36     flake8
37 commands = flake8 m_librarian scripts test
38
39 [testenv:py34-flake8]
40 deps =
41     flake8
42 commands = flake8 m_librarian scripts test