3 envlist = {py26,py27,py34,py35,py36},{py26,py27,py34,py35,py36}-{postgres,sqlite},{py27,py34}-flake8
5 # Base test environment settings
8 py27: {env:TOXPYTHON:python2.7}
9 py34: {env:TOXPYTHON:python3.4}
10 py35: {env:TOXPYTHON:python3.5}
11 py36: {env:TOXPYTHON:python3.6}
14 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
20 py2{6,7}: SQLObject>=2.2.1
21 py3{4,5,6}: SQLObject>=3.0.0
26 # Don't fail or warn on uninstalled commands
35 {envpython} -m pytest --cov=sqlconvert
36 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
37 {envpython} devscripts/cmp.py -i tests/mysql2sql/test.out test.out
38 {envpython} devscripts/rm.py test.out
41 commands = {[general]commands}
44 commands = {[general]commands}
47 commands = {[general]commands}
50 commands = {[general]commands}
53 commands = {[general]commands}
55 # PostgreSQL test environments
61 {envpython} -m pytest --cov=sqlconvert -D postgres:///test
64 [testenv:py26-postgres]
65 commands = {[postgresql]commands}
67 [testenv:py27-postgres]
68 commands = {[postgresql]commands}
70 [testenv:py34-postgres]
71 commands = {[postgresql]commands}
73 [testenv:py35-postgres]
74 commands = {[postgresql]commands}
76 [testenv:py36-postgres]
77 commands = {[postgresql]commands}
79 # SQLite test environments
83 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
84 {envpython} devscripts/rm.py /tmp/test.sqdb
87 commands = {[sqlite]commands}
90 commands = {[sqlite]commands}
93 commands = {[sqlite]commands}
96 commands = {[sqlite]commands}
99 commands = {[sqlite]commands}
102 [testenv:py27-flake8]
109 [testenv:py34-flake8]