Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,py3 | envlist=flake8,py3 | ||||
[testenv:py3] | [testenv:py3] | ||||
deps = | deps = | ||||
# the dependency below is needed for now as a workaround for | |||||
# https://github.com/pypa/pip/issues/6239 | |||||
swh.core[http] >= 0.0.61 | |||||
.[testing] | .[testing] | ||||
.[server] | |||||
pytest-cov | pytest-cov | ||||
pifpaf | pifpaf | ||||
pytest-django | pytest-django | ||||
commands = | commands = | ||||
pifpaf run postgresql -- pytest --cov {envsitepackagesdir}/swh/deposit --cov-branch {posargs} {envsitepackagesdir}/swh/deposit | pifpaf run postgresql -- pytest --cov {envsitepackagesdir}/swh/deposit --cov-branch {posargs} {envsitepackagesdir}/swh/deposit | ||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 \ | {envpython} -m flake8 \ | ||||
--exclude=.tox,.git,__pycache__,.tox,.eggs,*.egg,swh/deposit/migrations | --exclude=.tox,.git,__pycache__,.tox,.eggs,*.egg,swh/deposit/migrations |