2020-09-04 00:24:21 +02:00
|
|
|
[tox]
|
|
|
|
envlist = clean,lint,py3,report
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
mock
|
|
|
|
pytest
|
2020-09-06 00:23:34 +02:00
|
|
|
pytest-asyncio
|
2020-09-04 00:24:21 +02:00
|
|
|
pytest-cov
|
|
|
|
pytest-mock
|
|
|
|
commands =
|
2020-09-04 18:22:49 +02:00
|
|
|
pytest --cov=chweb --cov-append --cov-report=term-missing {posargs}
|
2020-09-04 00:24:21 +02:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps = pylint
|
|
|
|
whitelist_externals = bash
|
|
|
|
commands =
|
|
|
|
bash -c "pylint --output-format=parseable src/ | tee reports/pylint.out"
|
|
|
|
|
|
|
|
[testenv:report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands =
|
|
|
|
coverage report
|
|
|
|
coverage html -d reports/htmlcov
|
|
|
|
coverage xml -o reports/coverage.xml
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
changedir = docs
|
2020-09-05 01:50:54 +02:00
|
|
|
deps =
|
|
|
|
sphinx
|
|
|
|
sphinx-typlog-theme
|
2020-09-04 00:24:21 +02:00
|
|
|
commands =
|
2020-09-06 04:42:26 +02:00
|
|
|
sphinx-build -W -b html -E ./source/ ./build/html/
|
2020-09-04 00:24:21 +02:00
|
|
|
|
2020-09-07 14:56:30 +02:00
|
|
|
[testenv:release]
|
|
|
|
commands = python setup.py bdist_wheel
|
|
|
|
|
2020-09-04 00:24:21 +02:00
|
|
|
[testenv:clean]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands = coverage erase
|