Files
tryton/tox.ini
T
Cédric Krier 9d227c6d1f Add support for Python 3.10
and remove support for Python 3.6.

issue11048
review364451002
2021-12-18 16:29:38 +01:00

18 lines
747 B
INI

[tox]
envlist = {py37,py38,py39,py310}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
commands =
coverage run --include=.*/account/* setup.py test
coverage report --include=.*/account/* --omit=*/tests/*
deps =
coverage
{py37,py38,py39,py310}-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}
install_command = pip install --pre --find-links https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER:}.{env:CI_JOB_NUMBER:}} {opts} {packages}