]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Set toxworkdir to ~/.tox
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 toxworkdir={homedir}/.tox/m_librarian
4 envlist = {py26,py27,py34},{py27,py34}-flake8
5
6 # Base test environment settings
7 [testenv]
8 deps =
9     pytest
10     pytest-cov
11     py26: argparse
12     py26,py27: SQLObject>=2.2.1
13     py34: SQLObject>=3.0.0
14     py26,py27: m_lib>=2.0
15     py34: m_lib>=3.0
16 sitepackages = True
17 # Don't fail or warn on uninstalled commands
18 whitelist_externals =
19     flake8
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
38
39 [testenv:py34-flake8]
40 deps =
41     flake8
42 commands = flake8