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)"
21 -rdevscripts/requirements/requirements_tests.txt
22 postgres: psycopg2-binary
25 VIRTUALENV_PIP = 19.1.1
26 platform = linux|win32
27 # Don't fail or warn on uninstalled commands
32 [testenv:{py27,py34,py35,py36,py37,py38,py39}]
36 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
37 cmp.py -i tests/mysql2sql/test.out test.out
40 [testenv:{py27,py34,py35,py36,py37,py38,py39}-sqlite]
43 -rm.py -f /tmp/test.sqdb
44 {envpython} -m pytest -D sqlite:///tmp/test.sqdb
45 rm.py -f /tmp/test.sqdb
47 [testenv:{py27,py34,py35,py36,py37,py38,py39}-sqlite-w32]
51 -rm.py -f {env:TEMP}/test.sqdb
52 pytest -D sqlite:/{env:TEMP}/test.sqdb?debug=1
53 rm.py -f {env:TEMP}/test.sqdb
55 [testenv:{py27,py34,py35,py36,py37,py38,py39}-postgres{,-w32}]
58 -dropdb --username=runner test
59 createdb --username=runner test
60 {envpython} -m pytest -D postgres://runner:test@localhost/test
61 dropdb --username=runner test
64 [testenv:{py27,py34,py35,py36,py37,py38,py39}-flake8]