3 envlist = py{27,34,35,36,37}{,-sqlite},py{27,34}-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}
12 py37: {env:TOXPYTHON:python3.7}
15 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
17 -rdevscripts/requirements/requirements_tests.txt
18 postgres: psycopg2-binary
21 # 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 cmp.py -i tests/mysql2sql/test.out test.out
35 commands = {[general]commands}
38 commands = {[general]commands}
41 commands = {[general]commands}
44 commands = {[general]commands}
47 commands = {[general]commands}
49 # PostgreSQL test environments
53 -dropdb -U postgres -w test
54 createdb -U postgres -w test
55 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
56 dropdb -U postgres -w test
58 [testenv:py27-postgres]
59 commands = {[postgresql]commands}
61 [testenv:py34-postgres]
62 commands = {[postgresql]commands}
64 [testenv:py35-postgres]
65 commands = {[postgresql]commands}
67 [testenv:py36-postgres]
68 commands = {[postgresql]commands}
70 [testenv:py37-postgres]
71 commands = {[postgresql]commands}
77 -dropdb -U postgres -w test
78 createdb -U postgres -w test
79 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
80 dropdb -U postgres -w test
82 [testenv:py27-postgres-w32]
84 commands = {[postgres-w32]commands}
86 [testenv:py34-postgres-w32]
88 commands = {[postgres-w32]commands}
90 [testenv:py35-postgres-w32]
92 commands = {[postgres-w32]commands}
94 [testenv:py36-postgres-w32]
96 commands = {[postgres-w32]commands}
98 [testenv:py37-postgres-w32]
100 commands = {[postgres-w32]commands}
102 # SQLite test environments
106 -rm.py -f /tmp/test.sqdb
107 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
108 rm.py -f /tmp/test.sqdb
110 [testenv:py27-sqlite]
111 commands = {[sqlite]commands}
113 [testenv:py34-sqlite]
114 commands = {[sqlite]commands}
116 [testenv:py35-sqlite]
117 commands = {[sqlite]commands}
119 [testenv:py36-sqlite]
120 commands = {[sqlite]commands}
122 [testenv:py37-sqlite]
123 commands = {[sqlite]commands}
129 -rm.py -f C:/projects/sqlconvert/test.sqdb
130 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
131 rm.py -f C:/projects/sqlconvert/test.sqdb
133 [testenv:py27-sqlite-w32]
135 commands = {[sqlite-w32]commands}
137 [testenv:py34-sqlite-w32]
139 commands = {[sqlite-w32]commands}
141 [testenv:py35-sqlite-w32]
143 commands = {[sqlite-w32]commands}
145 [testenv:py36-sqlite-w32]
147 commands = {[sqlite-w32]commands}
149 [testenv:py37-sqlite-w32]
151 commands = {[sqlite-w32]commands}
154 [testenv:py27-flake8]
161 [testenv:py34-flake8]