]> git.phdru.name Git - sqlconvert.git/blob - tox.ini
Use coverage and tox for testing
[sqlconvert.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     sqlparse
9     pytest
10     pytest-cov
11     py26: argparse
12     py26,py27: m_lib>=2.0
13     py34: m_lib>=3.0
14 sitepackages = True
15 # Don't fail or warn on uninstalled commands
16 whitelist_externals =
17     flake8
18     py.test
19
20 [general]
21 commands =
22     python /usr/local/bin/py.test --cov={envsitepackagesdir}/sqlconvert
23
24 [testenv:py26]
25 commands = {[general]commands}
26
27 [testenv:py27]
28 commands = {[general]commands}
29
30 [testenv:py34]
31 commands = {[general]commands}
32
33 [testenv:py27-flake8]
34 deps =
35     flake8
36 commands = flake8 demo scripts sqlconvert tests
37
38 [testenv:py34-flake8]
39 deps =
40     flake8
41 commands = flake8 demo scripts sqlconvert tests