trytond-sale_confirmed2quot.../tox.ini

17 lines
604 B
INI

[tox]
envlist = {py37,py38}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
commands = {envpython} setup.py test
deps =
{py37,py38}-postgresql: psycopg2 >= 2.5
pypy3-postgresql: psycopg2cffi >= 2.5
setenv =
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
sqlite: TRYTOND_CONFIG=tests/trytond.conf
postgresql: TRYTOND_CONFIG=tests/trytond.conf
install_command = pip install --pre {opts} {packages}