3 envlist = {py27,py34,py35,py36},{py27,py34,py35,py36}-{postgres,postgres-w32,sqlite,sqlite-w32},{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
20 # Don't fail or warn on uninstalled commands
31 {envpython} -m pytest --cov=sqlconvert
32 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
33 cmp.py -i tests/mysql2sql/test.out test.out
37 commands = {[general]commands}
40 commands = {[general]commands}
43 commands = {[general]commands}
46 commands = {[general]commands}
48 # PostgreSQL test environments
52 -dropdb -U postgres -w test
53 createdb -U postgres -w test
54 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
55 dropdb -U postgres -w test
57 [testenv:py27-postgres]
58 commands = {[postgresql]commands}
60 [testenv:py34-postgres]
61 commands = {[postgresql]commands}
63 [testenv:py35-postgres]
64 commands = {[postgresql]commands}
66 [testenv:py36-postgres]
67 commands = {[postgresql]commands}
72 -dropdb -U postgres -w test
73 createdb -U postgres -w test
74 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
75 dropdb -U postgres -w test
77 [testenv:py27-postgres-w32]
78 commands = {[postgres-w32]commands}
80 [testenv:py34-postgres-w32]
81 commands = {[postgres-w32]commands}
83 [testenv:py35-postgres-w32]
84 commands = {[postgres-w32]commands}
86 [testenv:py36-postgres-w32]
87 commands = {[postgres-w32]commands}
89 # SQLite test environments
94 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
98 commands = {[sqlite]commands}
100 [testenv:py34-sqlite]
101 commands = {[sqlite]commands}
103 [testenv:py35-sqlite]
104 commands = {[sqlite]commands}
106 [testenv:py36-sqlite]
107 commands = {[sqlite]commands}
112 -rm.py C:/projects/sqlconvert/test.sqdb
113 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
114 rm.py C:/projects/sqlconvert/test.sqdb
116 [testenv:py27-sqlite-w32]
117 commands = {[sqlite-w32]commands}
119 [testenv:py34-sqlite-w32]
120 commands = {[sqlite-w32]commands}
122 [testenv:py35-sqlite-w32]
123 commands = {[sqlite-w32]commands}
126 [testenv:py27-flake8]
133 [testenv:py34-flake8]