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}
73 -dropdb -U postgres -w test
74 createdb -U postgres -w test
75 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
76 dropdb -U postgres -w test
78 [testenv:py27-postgres-w32]
80 commands = {[postgres-w32]commands}
82 [testenv:py34-postgres-w32]
84 commands = {[postgres-w32]commands}
86 [testenv:py35-postgres-w32]
88 commands = {[postgres-w32]commands}
90 [testenv:py36-postgres-w32]
92 commands = {[postgres-w32]commands}
94 # SQLite test environments
98 -rm.py -f /tmp/test.sqdb
99 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
100 rm.py -f /tmp/test.sqdb
102 [testenv:py27-sqlite]
103 commands = {[sqlite]commands}
105 [testenv:py34-sqlite]
106 commands = {[sqlite]commands}
108 [testenv:py35-sqlite]
109 commands = {[sqlite]commands}
111 [testenv:py36-sqlite]
112 commands = {[sqlite]commands}
118 -rm.py -f C:/projects/sqlconvert/test.sqdb
119 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
120 rm.py -f C:/projects/sqlconvert/test.sqdb
122 [testenv:py27-sqlite-w32]
124 commands = {[sqlite-w32]commands}
126 [testenv:py34-sqlite-w32]
128 commands = {[sqlite-w32]commands}
130 [testenv:py35-sqlite-w32]
132 commands = {[sqlite-w32]commands}
135 [testenv:py27-flake8]
142 [testenv:py34-flake8]