3 envlist = py{27,34,35,36}{,-sqlite},py{27,34}-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
28 {envpython} -m pytest --cov=sqlconvert
29 {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
30 cmp.py -i tests/mysql2sql/test.out test.out
34 commands = {[general]commands}
37 commands = {[general]commands}
40 commands = {[general]commands}
43 commands = {[general]commands}
45 # PostgreSQL test environments
49 -dropdb -U postgres -w test
50 createdb -U postgres -w test
51 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
52 dropdb -U postgres -w test
54 [testenv:py27-postgres]
55 commands = {[postgresql]commands}
57 [testenv:py34-postgres]
58 commands = {[postgresql]commands}
60 [testenv:py35-postgres]
61 commands = {[postgresql]commands}
63 [testenv:py36-postgres]
64 commands = {[postgresql]commands}
70 -dropdb -U postgres -w test
71 createdb -U postgres -w test
72 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
73 dropdb -U postgres -w test
75 [testenv:py27-postgres-w32]
77 commands = {[postgres-w32]commands}
79 [testenv:py34-postgres-w32]
81 commands = {[postgres-w32]commands}
83 [testenv:py35-postgres-w32]
85 commands = {[postgres-w32]commands}
87 [testenv:py36-postgres-w32]
89 commands = {[postgres-w32]commands}
91 # SQLite test environments
95 -rm.py -f /tmp/test.sqdb
96 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
97 rm.py -f /tmp/test.sqdb
100 commands = {[sqlite]commands}
102 [testenv:py34-sqlite]
103 commands = {[sqlite]commands}
105 [testenv:py35-sqlite]
106 commands = {[sqlite]commands}
108 [testenv:py36-sqlite]
109 commands = {[sqlite]commands}
115 -rm.py -f C:/projects/sqlconvert/test.sqdb
116 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
117 rm.py -f C:/projects/sqlconvert/test.sqdb
119 [testenv:py27-sqlite-w32]
121 commands = {[sqlite-w32]commands}
123 [testenv:py34-sqlite-w32]
125 commands = {[sqlite-w32]commands}
127 [testenv:py35-sqlite-w32]
129 commands = {[sqlite-w32]commands}
131 [testenv:py36-sqlite-w32]
133 commands = {[sqlite-w32]commands}
136 [testenv:py27-flake8]
143 [testenv:py34-flake8]