3 envlist = py27,py3{4,5,6,7,8,9}{,-sqlite},py{27,39}-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}
13 py38: {env:TOXPYTHON:python3.8}
14 py39: {env:TOXPYTHON:python3.9}
17 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
19 -rdevscripts/requirements/requirements_tests.txt
20 postgres: psycopg2-binary
23 # Don't fail or warn on uninstalled commands
32 {envpython} -m pytest --cov=sqlconvert
33 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
34 cmp.py -i tests/mysql2sql/test.out test.out
38 platform = linux|win32
39 commands = {[general]commands}
42 platform = linux|win32
43 commands = {[general]commands}
46 platform = linux|win32
47 commands = {[general]commands}
50 platform = linux|win32
51 commands = {[general]commands}
54 platform = linux|win32
55 commands = {[general]commands}
58 platform = linux|win32
59 commands = {[general]commands}
62 platform = linux|win32
63 commands = {[general]commands}
65 # PostgreSQL test environments
69 -dropdb -U postgres -w test
70 createdb -U postgres -w test
71 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
72 dropdb -U postgres -w test
74 [testenv:py27-postgres]
75 commands = {[postgresql]commands}
77 [testenv:py34-postgres]
78 commands = {[postgresql]commands}
80 [testenv:py35-postgres]
81 commands = {[postgresql]commands}
83 [testenv:py36-postgres]
84 commands = {[postgresql]commands}
86 [testenv:py37-postgres]
87 commands = {[postgresql]commands}
89 [testenv:py38-postgres]
90 commands = {[postgresql]commands}
92 [testenv:py39-postgres]
93 commands = {[postgresql]commands}
99 -dropdb -U postgres -w test
100 createdb -U postgres -w test
101 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
102 dropdb -U postgres -w test
104 [testenv:py27-postgres-w32]
106 commands = {[postgres-w32]commands}
108 [testenv:py34-postgres-w32]
110 commands = {[postgres-w32]commands}
112 [testenv:py35-postgres-w32]
114 commands = {[postgres-w32]commands}
116 [testenv:py36-postgres-w32]
118 commands = {[postgres-w32]commands}
120 [testenv:py37-postgres-w32]
123 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
124 {[postgres-w32]commands}
126 [testenv:py38-postgres-w32]
129 {[postgres-w32]commands}
131 [testenv:py39-postgres-w32]
134 {[postgres-w32]commands}
136 # SQLite test environments
140 -rm.py -f /tmp/test.sqdb
141 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
142 rm.py -f /tmp/test.sqdb
144 [testenv:py27-sqlite]
145 commands = {[sqlite]commands}
147 [testenv:py34-sqlite]
148 commands = {[sqlite]commands}
150 [testenv:py35-sqlite]
151 commands = {[sqlite]commands}
153 [testenv:py36-sqlite]
154 commands = {[sqlite]commands}
156 [testenv:py37-sqlite]
157 commands = {[sqlite]commands}
159 [testenv:py38-sqlite]
160 commands = {[sqlite]commands}
162 [testenv:py39-sqlite]
163 commands = {[sqlite]commands}
169 -rm.py -f C:/projects/sqlconvert/test.sqdb
170 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
171 rm.py -f C:/projects/sqlconvert/test.sqdb
173 [testenv:py27-sqlite-w32]
175 commands = {[sqlite-w32]commands}
177 [testenv:py34-sqlite-w32]
179 commands = {[sqlite-w32]commands}
181 [testenv:py35-sqlite-w32]
183 commands = {[sqlite-w32]commands}
185 [testenv:py36-sqlite-w32]
187 commands = {[sqlite-w32]commands}
189 [testenv:py37-sqlite-w32]
192 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
193 {[sqlite-w32]commands}
195 [testenv:py38-sqlite-w32]
198 {[sqlite-w32]commands}
200 [testenv:py39-sqlite-w32]
203 {[sqlite-w32]commands}
206 [testenv:py27-flake8]
207 platform = linux|win32
214 [testenv:py39-flake8]
215 platform = linux|win32