3 envlist = py27,py3{4,5,6,7,8}{,-sqlite},py{27,38}-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}
16 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
18 -rdevscripts/requirements/requirements_tests.txt
19 postgres: psycopg2-binary
22 # 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 platform = linux|win32
38 commands = {[general]commands}
41 platform = linux|win32
42 commands = {[general]commands}
45 platform = linux|win32
46 commands = {[general]commands}
49 platform = linux|win32
50 commands = {[general]commands}
53 platform = linux|win32
54 commands = {[general]commands}
57 platform = linux|win32
58 commands = {[general]commands}
60 # PostgreSQL test environments
64 -dropdb -U postgres -w test
65 createdb -U postgres -w test
66 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
67 dropdb -U postgres -w test
69 [testenv:py27-postgres]
70 commands = {[postgresql]commands}
72 [testenv:py34-postgres]
73 commands = {[postgresql]commands}
75 [testenv:py35-postgres]
76 commands = {[postgresql]commands}
78 [testenv:py36-postgres]
79 commands = {[postgresql]commands}
81 [testenv:py37-postgres]
82 commands = {[postgresql]commands}
84 [testenv:py38-postgres]
85 commands = {[postgresql]commands}
91 -dropdb -U postgres -w test
92 createdb -U postgres -w test
93 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
94 dropdb -U postgres -w test
96 [testenv:py27-postgres-w32]
98 commands = {[postgres-w32]commands}
100 [testenv:py34-postgres-w32]
102 commands = {[postgres-w32]commands}
104 [testenv:py35-postgres-w32]
106 commands = {[postgres-w32]commands}
108 [testenv:py36-postgres-w32]
110 commands = {[postgres-w32]commands}
112 [testenv:py37-postgres-w32]
115 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
116 {[postgres-w32]commands}
118 [testenv:py38-postgres-w32]
121 {[postgres-w32]commands}
123 # SQLite test environments
127 -rm.py -f /tmp/test.sqdb
128 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
129 rm.py -f /tmp/test.sqdb
131 [testenv:py27-sqlite]
132 commands = {[sqlite]commands}
134 [testenv:py34-sqlite]
135 commands = {[sqlite]commands}
137 [testenv:py35-sqlite]
138 commands = {[sqlite]commands}
140 [testenv:py36-sqlite]
141 commands = {[sqlite]commands}
143 [testenv:py37-sqlite]
144 commands = {[sqlite]commands}
146 [testenv:py38-sqlite]
147 commands = {[sqlite]commands}
153 -rm.py -f C:/projects/sqlconvert/test.sqdb
154 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
155 rm.py -f C:/projects/sqlconvert/test.sqdb
157 [testenv:py27-sqlite-w32]
159 commands = {[sqlite-w32]commands}
161 [testenv:py34-sqlite-w32]
163 commands = {[sqlite-w32]commands}
165 [testenv:py35-sqlite-w32]
167 commands = {[sqlite-w32]commands}
169 [testenv:py36-sqlite-w32]
171 commands = {[sqlite-w32]commands}
173 [testenv:py37-sqlite-w32]
176 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
177 {[sqlite-w32]commands}
179 [testenv:py38-sqlite-w32]
182 {[sqlite-w32]commands}
185 [testenv:py27-flake8]
186 platform = linux|win32
193 [testenv:py38-flake8]
194 platform = linux|win32