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 = | ||||
luigi | |||||
testing | testing | ||||
deps = | deps = | ||||
pytest-cov | pytest-cov | ||||
dev: pdbpp | dev: pdbpp | ||||
commands = | commands = | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
{envsitepackagesdir}/swh/dataset \ | {envsitepackagesdir}/swh/dataset \ | ||||
--cov={envsitepackagesdir}/swh/dataset \ | --cov={envsitepackagesdir}/swh/dataset \ | ||||
Show All 25 Lines | |||||
# 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 = | ||||
luigi | |||||
testing | testing | ||||
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 = | ||||
luigi | |||||
testing | testing | ||||
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 |