]> git.phdru.name Git - sqlconvert.git/blob - tox.ini
Python 3.5, 3.6
[sqlconvert.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = {py26,py27,py34,py35,py36},{py26,py27,py34,py35,py36}-{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     py2{6,7}: SQLObject>=2.2.1
13     py3{4,5,6}: SQLObject>=3.0.0
14     m_lib>=3.1
15     m_lib.defenc>=1.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     cmp
24     rm
25
26 [general]
27 commands =
28     {envpython} -m pytest --cov=sqlconvert
29     mysql2sql demo/demo.sql test.out
30     cmp -s tests/mysql2sql/test.out test.out
31     rm test.out
32
33 [testenv:py26]
34 commands = {[general]commands}
35
36 [testenv:py27]
37 commands = {[general]commands}
38
39 [testenv:py34]
40 commands = {[general]commands}
41
42 [testenv:py35]
43 commands = {[general]commands}
44
45 [testenv:py36]
46 commands = {[general]commands}
47
48 # PostgreSQL test environments
49 [postgresql]
50 commands =
51     -dropdb test
52     createdb test
53     {envpython} -m pytest --cov=sqlconvert -D postgres:///test
54     dropdb test
55
56 [testenv:py26-postgres]
57 commands = {[postgresql]commands}
58
59 [testenv:py27-postgres]
60 commands = {[postgresql]commands}
61
62 [testenv:py34-postgres]
63 commands = {[postgresql]commands}
64
65 [testenv:py35-postgres]
66 commands = {[postgresql]commands}
67
68 [testenv:py36-postgres]
69 commands = {[postgresql]commands}
70
71 # SQLite test environments
72 [sqlite]
73 commands =
74     {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
75     rm -f /tmp/test.sqdb
76
77 [testenv:py26-sqlite]
78 commands = {[sqlite]commands}
79
80 [testenv:py27-sqlite]
81 commands = {[sqlite]commands}
82
83 [testenv:py34-sqlite]
84 commands = {[sqlite]commands}
85
86 [testenv:py35-sqlite]
87 commands = {[sqlite]commands}
88
89 [testenv:py36-sqlite]
90 commands = {[sqlite]commands}
91
92 # flake8
93 [testenv:py27-flake8]
94 deps =
95     flake8
96 commands = flake8
97
98 [testenv:py34-flake8]
99 deps =
100     flake8
101 commands = flake8