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
29 {envpython} -m pytest --cov=sqlconvert
30 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
31 {envpython} {envbindir}/cmp.py -i tests/mysql2sql/test.out test.out
32 {envpython} {envbindir}/rm.py test.out
35 commands = {[general]commands}
38 commands = {[general]commands}
41 commands = {[general]commands}
44 commands = {[general]commands}
46 # PostgreSQL test environments
50 -dropdb -U postgres -w test
51 createdb -U postgres -w test
52 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
53 dropdb -U postgres -w test
55 [testenv:py27-postgres]
56 commands = {[postgresql]commands}
58 [testenv:py34-postgres]
59 commands = {[postgresql]commands}
61 [testenv:py35-postgres]
62 commands = {[postgresql]commands}
64 [testenv:py36-postgres]
65 commands = {[postgresql]commands}
70 -dropdb -U postgres -w test
71 createdb -U postgres -w test
72 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
73 dropdb -U postgres -w test
75 [testenv:py27-postgres-w32]
76 commands = {[postgres-w32]commands}
78 [testenv:py34-postgres-w32]
79 commands = {[postgres-w32]commands}
81 [testenv:py35-postgres-w32]
82 commands = {[postgres-w32]commands}
84 [testenv:py36-postgres-w32]
85 commands = {[postgres-w32]commands}
87 # SQLite test environments
91 -{envpython} {envbindir}/rm.py /tmp/test.sqdb
92 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
93 {envpython} {envbindir}/rm.py /tmp/test.sqdb
96 commands = {[sqlite]commands}
99 commands = {[sqlite]commands}
101 [testenv:py35-sqlite]
102 commands = {[sqlite]commands}
104 [testenv:py36-sqlite]
105 commands = {[sqlite]commands}
110 -{envpython} {envbindir}/rm.py C:/projects/sqlconvert/test.sqdb
111 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
112 {envpython} {envbindir}/rm.py C:/projects/sqlconvert/test.sqdb
114 [testenv:py27-sqlite-w32]
115 commands = {[sqlite-w32]commands}
117 [testenv:py34-sqlite-w32]
118 commands = {[sqlite-w32]commands}
120 [testenv:py35-sqlite-w32]
121 commands = {[sqlite-w32]commands}
124 [testenv:py27-flake8]
131 [testenv:py34-flake8]