]> git.phdru.name Git - sqlconvert.git/blob - tox.ini
Add tests for SQLite
[sqlconvert.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = {py26,py27,py34},{py26,py27,py34}-{postgres,sqlite},{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     rm
24
25 [general]
26 commands =
27     python -m pytest --cov=sqlconvert
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
45 [testenv:py26-postgres]
46 commands = {[postgresql]commands}
47
48 [testenv:py27-postgres]
49 commands = {[postgresql]commands}
50
51 [testenv:py34-postgres]
52 commands = {[postgresql]commands}
53
54 # SQLite test environments
55 [sqlite]
56 commands =
57     python -m pytest -D sqlite:///tmp/test.sqdb
58     rm -f /tmp/test.sqdb
59
60 [testenv:py26-sqlite]
61 commands = {[sqlite]commands}
62
63 [testenv:py27-sqlite]
64 commands = {[sqlite]commands}
65
66 [testenv:py34-sqlite]
67 commands = {[sqlite]commands}
68
69 # flake8
70 [testenv:py27-flake8]
71 deps =
72     flake8
73 commands = flake8
74
75 [testenv:py34-flake8]
76 deps =
77     flake8
78 commands = flake8