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 commands = {[general]commands}
40 commands = {[general]commands}
43 commands = {[general]commands}
46 commands = {[general]commands}
49 commands = {[general]commands}
52 commands = {[general]commands}
54 # PostgreSQL test environments
58 -dropdb -U postgres -w test
59 createdb -U postgres -w test
60 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
61 dropdb -U postgres -w test
63 [testenv:py27-postgres]
64 commands = {[postgresql]commands}
66 [testenv:py34-postgres]
67 commands = {[postgresql]commands}
69 [testenv:py35-postgres]
70 commands = {[postgresql]commands}
72 [testenv:py36-postgres]
73 commands = {[postgresql]commands}
75 [testenv:py37-postgres]
76 commands = {[postgresql]commands}
78 [testenv:py38-postgres]
79 commands = {[postgresql]commands}
85 -dropdb -U postgres -w test
86 createdb -U postgres -w test
87 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
88 dropdb -U postgres -w test
90 [testenv:py27-postgres-w32]
92 commands = {[postgres-w32]commands}
94 [testenv:py34-postgres-w32]
96 commands = {[postgres-w32]commands}
98 [testenv:py35-postgres-w32]
100 commands = {[postgres-w32]commands}
102 [testenv:py36-postgres-w32]
104 commands = {[postgres-w32]commands}
106 [testenv:py37-postgres-w32]
109 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
110 {[postgres-w32]commands}
112 [testenv:py38-postgres-w32]
115 {[postgres-w32]commands}
117 # SQLite test environments
121 -rm.py -f /tmp/test.sqdb
122 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
123 rm.py -f /tmp/test.sqdb
125 [testenv:py27-sqlite]
126 commands = {[sqlite]commands}
128 [testenv:py34-sqlite]
129 commands = {[sqlite]commands}
131 [testenv:py35-sqlite]
132 commands = {[sqlite]commands}
134 [testenv:py36-sqlite]
135 commands = {[sqlite]commands}
137 [testenv:py37-sqlite]
138 commands = {[sqlite]commands}
140 [testenv:py38-sqlite]
141 commands = {[sqlite]commands}
147 -rm.py -f C:/projects/sqlconvert/test.sqdb
148 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
149 rm.py -f C:/projects/sqlconvert/test.sqdb
151 [testenv:py27-sqlite-w32]
153 commands = {[sqlite-w32]commands}
155 [testenv:py34-sqlite-w32]
157 commands = {[sqlite-w32]commands}
159 [testenv:py35-sqlite-w32]
161 commands = {[sqlite-w32]commands}
163 [testenv:py36-sqlite-w32]
165 commands = {[sqlite-w32]commands}
167 [testenv:py37-sqlite-w32]
170 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
171 {[sqlite-w32]commands}
173 [testenv:py38-sqlite-w32]
176 {[sqlite-w32]commands}
179 [testenv:py27-flake8]
186 [testenv:py38-flake8]