]> git.phdru.name Git - sqlconvert.git/blob - tox.ini
Do not clean up: rm doesn't work
[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
28 [testenv:py26]
29 commands = {[general]commands}
30
31 [testenv:py27]
32 commands = {[general]commands}
33
34 [testenv:py34]
35 commands = {[general]commands}
36
37 # PostgreSQL test environments
38 [postgresql]
39 commands =
40     createdb test
41     python -m pytest -D postgres:///test
42     dropdb test
43
44 [testenv:py26-postgres]
45 commands = {[postgresql]commands}
46
47 [testenv:py27-postgres]
48 commands = {[postgresql]commands}
49
50 [testenv:py34-postgres]
51 commands = {[postgresql]commands}
52
53 [testenv:py27-flake8]
54 deps =
55     flake8
56 commands = flake8
57
58 [testenv:py34-flake8]
59 deps =
60     flake8
61 commands = flake8