]> git.phdru.name Git - sqlconvert.git/blob - tox.ini
[mysql2sql] Show the name of the file being converted
[sqlconvert.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 toxworkdir={homedir}/.tox/sqlconvert
4 envlist = {py26,py27,py34},{py26,py27,py34}-{postgres,sqlite},{py27,py34}-flake8
5
6 # Base test environment settings
7 [testenv]
8 deps =
9     sqlparse
10     pytest
11     pytest-cov
12     py26: argparse
13     py26,py27: SQLObject>=2.2.1
14     py34: SQLObject>=3.0.0
15     py26,py27: m_lib>=2.0
16     py34: m_lib>=3.0
17     postgres: psycopg2
18 sitepackages = True
19 # Don't fail or warn on uninstalled commands
20 whitelist_externals =
21     flake8
22     createdb
23     dropdb
24     cmp
25     rm
26
27 [general]
28 commands =
29     python -m pytest --cov=sqlconvert
30     mysql2sql demo/demo.sql test.out
31     cmp -s tests/mysql2sql/test.out test.out
32     rm test.out
33
34 [testenv:py26]
35 commands = {[general]commands}
36
37 [testenv:py27]
38 commands = {[general]commands}
39
40 [testenv:py34]
41 commands = {[general]commands}
42
43 # PostgreSQL test environments
44 [postgresql]
45 commands =
46     -dropdb test
47     createdb test
48     python -m pytest --cov=sqlconvert -D postgres:///test
49     dropdb test
50
51 [testenv:py26-postgres]
52 commands = {[postgresql]commands}
53
54 [testenv:py27-postgres]
55 commands = {[postgresql]commands}
56
57 [testenv:py34-postgres]
58 commands = {[postgresql]commands}
59
60 # SQLite test environments
61 [sqlite]
62 commands =
63     python -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
64     rm -f /tmp/test.sqdb
65
66 [testenv:py26-sqlite]
67 commands = {[sqlite]commands}
68
69 [testenv:py27-sqlite]
70 commands = {[sqlite]commands}
71
72 [testenv:py34-sqlite]
73 commands = {[sqlite]commands}
74
75 # flake8
76 [testenv:py27-flake8]
77 deps =
78     flake8
79 commands = flake8
80
81 [testenv:py34-flake8]
82 deps =
83     flake8
84 commands = flake8