2015-01-27 22:45:03 +01:00
|
|
|
[tox]
|
2016-02-25 23:07:43 +01:00
|
|
|
envlist = {py27,py33,py34,py35}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
|
2015-01-27 22:45:03 +01:00
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
|
commands = {envpython} setup.py test
|
|
|
|
|
deps =
|
2016-03-13 16:18:48 +01:00
|
|
|
{py27,py33,py34,py35}-postgresql: psycopg2 >= 2.5
|
2015-03-15 15:59:20 +01:00
|
|
|
pypy-postgresql: psycopg2cffi >= 2.5
|
2015-01-27 22:45:03 +01:00
|
|
|
mysql: MySQL-python
|
|
|
|
|
setenv =
|
|
|
|
|
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
|
|
|
|
|
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
|
|
|
|
|
mysql: TRYTOND_DATABASE_URI={env:MYSQL_URI:mysql://}
|
|
|
|
|
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
|
|
|
|
|
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
|
|
|
|
|
mysql: DB_NAME={env:MYSQL_NAME:test}
|
|
|
|
|
install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages}
|