[tox]
minversion = 1.8
+toxworkdir={homedir}/.tox/sqlconvert
envlist = {py26,py27,py34},{py26,py27,py34}-{postgres,sqlite},{py27,py34}-flake8
# Base test environment settings
flake8
createdb
dropdb
+ cmp
rm
[general]
commands =
python -m pytest --cov=sqlconvert
+ mysql2sql demo/demo.sql test.out
+ cmp -s tests/mysql2sql/test.out test.out
+ rm test.out
[testenv:py26]
commands = {[general]commands}
# PostgreSQL test environments
[postgresql]
commands =
+ -dropdb test
createdb test
python -m pytest --cov=sqlconvert -D postgres:///test
dropdb test