]> git.phdru.name Git - sqlconvert.git/blob - tox.ini
Run flake8 from root to test docs and scripts
[sqlconvert.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = {py26,py27,py34},{py26,py27,py34}-postgres,{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: SQLObject>=2.2.1
13     py34: SQLObject>=3.0.0
14     py26,py27: m_lib>=2.0
15     py34: m_lib>=3.0
16     postgres: psycopg2
17 sitepackages = True
18 # Don't fail or warn on uninstalled commands
19 whitelist_externals =
20     flake8
21     createdb
22     dropdb
23
24 [general]
25 commands =
26     python -m pytest --cov=sqlconvert
27     rm -f *.tmp
28
29 [testenv:py26]
30 commands = {[general]commands}
31
32 [testenv:py27]
33 commands = {[general]commands}
34
35 [testenv:py34]
36 commands = {[general]commands}
37
38 # PostgreSQL test environments
39 [postgresql]
40 commands =
41     createdb test
42     python -m pytest -D postgres:///test
43     dropdb test
44     rm -f *.tmp
45
46 [testenv:py26-postgres]
47 commands = {[postgresql]commands}
48
49 [testenv:py27-postgres]
50 commands = {[postgresql]commands}
51
52 [testenv:py34-postgres]
53 commands = {[postgresql]commands}
54
55 [testenv:py27-flake8]
56 deps =
57     flake8
58 commands = flake8
59
60 [testenv:py34-flake8]
61 deps =
62     flake8
63 commands = flake8