3 envlist = py{27,34,35,36,37}{,-sqlite},py{27,37}-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}
15 {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
17 -rdevscripts/requirements/requirements_tests.txt
18 postgres: psycopg2-binary
21 # 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}
48 commands = {[general]commands}
50 # PostgreSQL test environments
54 -dropdb -U postgres -w test
55 createdb -U postgres -w test
56 {envpython} -m pytest --cov=sqlconvert -D postgres://postgres:@localhost/test
57 dropdb -U postgres -w test
59 [testenv:py27-postgres]
60 commands = {[postgresql]commands}
62 [testenv:py34-postgres]
63 commands = {[postgresql]commands}
65 [testenv:py35-postgres]
66 commands = {[postgresql]commands}
68 [testenv:py36-postgres]
69 commands = {[postgresql]commands}
71 [testenv:py37-postgres]
72 commands = {[postgresql]commands}
78 -dropdb -U postgres -w test
79 createdb -U postgres -w test
80 pytest --cov=sqlconvert -D "postgres://postgres:Password12!@localhost/test"
81 dropdb -U postgres -w test
83 [testenv:py27-postgres-w32]
85 commands = {[postgres-w32]commands}
87 [testenv:py34-postgres-w32]
89 commands = {[postgres-w32]commands}
91 [testenv:py35-postgres-w32]
93 commands = {[postgres-w32]commands}
95 [testenv:py36-postgres-w32]
97 commands = {[postgres-w32]commands}
99 [testenv:py37-postgres-w32]
102 cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
103 {[postgres-w32]commands}
105 # SQLite test environments
109 -rm.py -f /tmp/test.sqdb
110 {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
111 rm.py -f /tmp/test.sqdb
113 [testenv:py27-sqlite]
114 commands = {[sqlite]commands}
116 [testenv:py34-sqlite]
117 commands = {[sqlite]commands}
119 [testenv:py35-sqlite]
120 commands = {[sqlite]commands}
122 [testenv:py36-sqlite]
123 commands = {[sqlite]commands}
125 [testenv:py37-sqlite]
126 commands = {[sqlite]commands}
132 -rm.py -f C:/projects/sqlconvert/test.sqdb
133 pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
134 rm.py -f C:/projects/sqlconvert/test.sqdb
136 [testenv:py27-sqlite-w32]
138 commands = {[sqlite-w32]commands}
140 [testenv:py34-sqlite-w32]
142 commands = {[sqlite-w32]commands}
144 [testenv:py35-sqlite-w32]
146 commands = {[sqlite-w32]commands}
148 [testenv:py36-sqlite-w32]
150 commands = {[sqlite-w32]commands}
152 [testenv:py37-sqlite-w32]
155 cmd /c "copy validators.py {envsitepackagesdir}\\formencode\\validators.py"
156 {[sqlite-w32]commands}
159 [testenv:py27-flake8]
166 [testenv:py37-flake8]