3 envlist = py27,py3{4,5,6,7,8,9,10}{,-sqlite},py{27,39}-flake8
5 # Base test environment settings
9 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
10 {envpython} -m pytest --version
12 -rdevscripts/requirements/requirements_tests.txt
13 postgres: psycopg2-binary
15 platform = linux|win32
16 # Don't fail or warn on uninstalled commands
21 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}]
25 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
26 cmp.py -i tests/mysql2sql/test.out test.out
29 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite]
32 -rm.py -f /tmp/test.sqdb
33 {envpython} -m pytest -D sqlite:///tmp/test.sqdb
34 rm.py -f /tmp/test.sqdb
36 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-sqlite-w32]
40 -rm.py -f {env:TEMP}/test.sqdb
41 pytest -D sqlite:/{env:TEMP}/test.sqdb?debug=1
42 rm.py -f {env:TEMP}/test.sqdb
44 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-postgres{,-w32}]
47 -dropdb --username=runner test
48 createdb --username=runner test
49 {envpython} -m pytest -D postgres://runner:test@localhost/test
50 dropdb --username=runner test
53 [testenv:{py27,py34,py35,py36,py37,py38,py39,py310}-flake8]