Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3-{core,db,server} | envlist=flake8,mypy,py3-{core,db,server} | ||||
[testenv] | [testenv] | ||||
extras = | |||||
testing-core | |||||
core: logging | |||||
db: db, testing-db | |||||
server: http | |||||
deps = | deps = | ||||
.[testing-core] | |||||
core: .[logging] | |||||
db: .[db,testing-db] | |||||
db: pifpaf | db: pifpaf | ||||
server: .[http] | |||||
cover: pytest-cov | cover: pytest-cov | ||||
commands = | commands = | ||||
db: pifpaf run postgresql -- \ | db: pifpaf run postgresql -- \ | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
slow: --hypothesis-profile=slow \ | slow: --hypothesis-profile=slow \ | ||||
cover: --cov={envsitepackagesdir}/swh/core --cov-branch \ | cover: --cov={envsitepackagesdir}/swh/core --cov-branch \ | ||||
core: {envsitepackagesdir}/swh/core/tests \ | core: {envsitepackagesdir}/swh/core/tests \ | ||||
db: {envsitepackagesdir}/swh/core/db/tests \ | db: {envsitepackagesdir}/swh/core/db/tests \ | ||||
server: {envsitepackagesdir}/swh/core/api/tests \ | server: {envsitepackagesdir}/swh/core/api/tests \ | ||||
{posargs} | {posargs} | ||||
[testenv:py3] | [testenv:py3] | ||||
skip_install = true | skip_install = true | ||||
deps = tox | deps = tox | ||||
commands = tox -e py3-core-db-server-slow-cover -- {posargs} | commands = tox -e py3-core-db-server-slow-cover -- {posargs} | ||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
skip_install = true | extras = | ||||
testing-core | |||||
logging | |||||
db | |||||
testing-db | |||||
http | |||||
deps = | deps = | ||||
.[logging,db,http,testing-core,testing-db] | |||||
mypy | mypy | ||||
commands = | commands = | ||||
mypy swh | mypy swh |