3 envlist = {py27,py34,py35,py36},{py27,py34,py35,py36}-{postgres,postgres-w32,sqlite,sqlite-w32},{py27,py34}-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}
14 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
16 -rdevscripts/requirements/requirements_tests.txt
19 # Don't fail or warn on uninstalled commands
30 {envpython} -m pytest --cov=sqlconvert
31 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
32 cmp.py -i tests/mysql2sql/test.out test.out
36 commands = {[general]commands}
39 commands = {[general]commands}
42 commands = {[general]commands}
45 commands = {[general]commands}
47 # PostgreSQL test environments
51 -dropdb -U postgres -w test
52 createdb -U postgres -w test
53 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
54 dropdb -U postgres -w test
56 [testenv:py27-postgres]
57 commands = {[postgresql]commands}
59 [testenv:py34-postgres]
60 commands = {[postgresql]commands}
62 [testenv:py35-postgres]
63 commands = {[postgresql]commands}
65 [testenv:py36-postgres]
66 commands = {[postgresql]commands}
71 -dropdb -U postgres -w test
72 createdb -U postgres -w test
73 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
74 dropdb -U postgres -w test
76 [testenv:py27-postgres-w32]
77 commands = {[postgres-w32]commands}
79 [testenv:py34-postgres-w32]
80 commands = {[postgres-w32]commands}
82 [testenv:py35-postgres-w32]
83 commands = {[postgres-w32]commands}
85 [testenv:py36-postgres-w32]
86 commands = {[postgres-w32]commands}
88 # SQLite test environments
92 -rm.py -f /tmp/test.sqdb
93 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
94 rm.py -f /tmp/test.sqdb
97 commands = {[sqlite]commands}
100 commands = {[sqlite]commands}
102 [testenv:py35-sqlite]
103 commands = {[sqlite]commands}
105 [testenv:py36-sqlite]
106 commands = {[sqlite]commands}
111 -rm.py -f C:/projects/sqlconvert/test.sqdb
112 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
113 rm.py -f C:/projects/sqlconvert/test.sqdb
115 [testenv:py27-sqlite-w32]
116 commands = {[sqlite-w32]commands}
118 [testenv:py34-sqlite-w32]
119 commands = {[sqlite-w32]commands}
121 [testenv:py35-sqlite-w32]
122 commands = {[sqlite-w32]commands}
125 [testenv:py27-flake8]
132 [testenv:py34-flake8]