Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
| [tox] | [tox] | ||||
| envlist=black,flake8,mypy,py3 | envlist=black,flake8,mypy,py3 | ||||
| [testenv] | [testenv] | ||||
| extras = | extras = | ||||
| testing | testing | ||||
| graph | |||||
| deps = | deps = | ||||
| pytest-cov | pytest-cov | ||||
| commands = | commands = | ||||
| pytest --cov={envsitepackagesdir}/swh/vault \ | pytest --cov={envsitepackagesdir}/swh/vault \ | ||||
| {envsitepackagesdir}/swh/vault \ | {envsitepackagesdir}/swh/vault \ | ||||
| --cov-branch {posargs} | --cov-branch {posargs} | ||||
| [testenv:black] | [testenv:black] | ||||
| skip_install = true | skip_install = true | ||||
| deps = | deps = | ||||
| black==19.10b0 | black==19.10b0 | ||||
| commands = | commands = | ||||
| {envpython} -m black --check swh | {envpython} -m black --check swh | ||||
| [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] | ||||
| extras = | extras = | ||||
| testing | testing | ||||
| graph | |||||
| deps = | deps = | ||||
| mypy | mypy | ||||
| commands = | commands = | ||||
| mypy swh | mypy swh | ||||
| # build documentation outside swh-environment using the current | # build documentation outside swh-environment using the current | ||||
| # git HEAD of swh-docs, is executed on CI for each diff to prevent | # git HEAD of swh-docs, is executed on CI for each diff to prevent | ||||
| # breaking doc build | # breaking doc build | ||||
| [testenv:sphinx] | [testenv:sphinx] | ||||
| whitelist_externals = make | whitelist_externals = make | ||||
| usedevelop = true | usedevelop = true | ||||
| extras = | extras = | ||||
| testing | testing | ||||
| graph | |||||
| deps = | deps = | ||||
| # fetch and install swh-docs in develop mode | # fetch and install swh-docs in develop mode | ||||
| -e git+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs | -e git+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs | ||||
| setenv = | setenv = | ||||
| SWH_PACKAGE_DOC_TOX_BUILD = 1 | SWH_PACKAGE_DOC_TOX_BUILD = 1 | ||||
| # turn warnings into errors | # turn warnings into errors | ||||
| SPHINXOPTS = -W | SPHINXOPTS = -W | ||||
| commands = | commands = | ||||
| make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs | make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs | ||||
| # build documentation only inside swh-environment using local state | # build documentation only inside swh-environment using local state | ||||
| # of swh-docs package | # of swh-docs package | ||||
| [testenv:sphinx-dev] | [testenv:sphinx-dev] | ||||
| whitelist_externals = make | whitelist_externals = make | ||||
| usedevelop = true | usedevelop = true | ||||
| extras = | extras = | ||||
| testing | testing | ||||
| graph | |||||
| deps = | deps = | ||||
| # install swh-docs in develop mode | # install swh-docs in develop mode | ||||
| -e ../swh-docs | -e ../swh-docs | ||||
| setenv = | setenv = | ||||
| SWH_PACKAGE_DOC_TOX_BUILD = 1 | SWH_PACKAGE_DOC_TOX_BUILD = 1 | ||||
| # turn warnings into errors | # turn warnings into errors | ||||
| SPHINXOPTS = -W | SPHINXOPTS = -W | ||||
| commands = | commands = | ||||
| make -I ../.tox/sphinx-dev/src/swh-docs/swh/ -C docs | make -I ../.tox/sphinx-dev/src/swh-docs/swh/ -C docs | ||||