3 envlist = {py27,py34,py35,py36}{,-sqlite},{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
20 # 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}
72 -dropdb -U postgres -w test
73 createdb -U postgres -w test
74 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
75 dropdb -U postgres -w test
77 [testenv:py27-postgres-w32]
79 commands = {[postgres-w32]commands}
81 [testenv:py34-postgres-w32]
83 commands = {[postgres-w32]commands}
85 [testenv:py35-postgres-w32]
87 commands = {[postgres-w32]commands}
89 [testenv:py36-postgres-w32]
91 commands = {[postgres-w32]commands}
93 # SQLite test environments
97 -rm.py -f /tmp/test.sqdb
98 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
99 rm.py -f /tmp/test.sqdb
101 [testenv:py27-sqlite]
102 commands = {[sqlite]commands}
104 [testenv:py34-sqlite]
105 commands = {[sqlite]commands}
107 [testenv:py35-sqlite]
108 commands = {[sqlite]commands}
110 [testenv:py36-sqlite]
111 commands = {[sqlite]commands}
117 -rm.py -f C:/projects/sqlconvert/test.sqdb
118 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
119 rm.py -f C:/projects/sqlconvert/test.sqdb
121 [testenv:py27-sqlite-w32]
123 commands = {[sqlite-w32]commands}
125 [testenv:py34-sqlite-w32]
127 commands = {[sqlite-w32]commands}
129 [testenv:py35-sqlite-w32]
131 commands = {[sqlite-w32]commands}
133 [testenv:py36-sqlite-w32]
135 commands = {[sqlite-w32]commands}
138 [testenv:py27-flake8]
145 [testenv:py34-flake8]