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)"
16 -rdevscripts/requirements/requirements_tests.txt
19 # Don't fail or warn on uninstalled commands
28 {envpython} -m pytest --cov=sqlconvert
29 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
30 {envpython} {envbindir}/cmp.py -i tests/mysql2sql/test.out test.out
31 {envpython} {envbindir}/rm.py test.out
34 commands = {[general]commands}
37 commands = {[general]commands}
40 commands = {[general]commands}
43 commands = {[general]commands}
46 commands = {[general]commands}
48 # PostgreSQL test environments
54 {envpython} -m pytest --cov=sqlconvert -D postgres:///test
57 [testenv:py26-postgres]
58 commands = {[postgresql]commands}
60 [testenv:py27-postgres]
61 commands = {[postgresql]commands}
63 [testenv:py34-postgres]
64 commands = {[postgresql]commands}
66 [testenv:py35-postgres]
67 commands = {[postgresql]commands}
69 [testenv:py36-postgres]
70 commands = {[postgresql]commands}
72 # SQLite test environments
76 -{envpython} {envbindir}/rm.py /tmp/test.sqdb
77 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
78 {envpython} {envbindir}/rm.py /tmp/test.sqdb
81 commands = {[sqlite]commands}
84 commands = {[sqlite]commands}
87 commands = {[sqlite]commands}
90 commands = {[sqlite]commands}
93 commands = {[sqlite]commands}
103 [testenv:py34-flake8]