Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3 | envlist=flake8,mypy,py3 | ||||
[testenv:py3] | [testenv:py3] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
pytest-cov | pytest-cov | ||||
whitelist_externals = mvn | whitelist_externals = mvn | ||||
commands = | commands = | ||||
mvn -f java/server/pom.xml compile assembly:single | mvn -f java/server/pom.xml compile assembly:single | ||||
pytest --cov=swh --cov-branch {posargs} | pytest --cov={envsitepackagesdir}/swh/graph \ | ||||
{envsitepackagesdir}/swh/graph \ | |||||
--cov-branch {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 | skip_install = true | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
mypy | mypy | ||||
commands = | commands = | ||||
mypy swh | mypy swh |