2015-07-30 18:09:16 +12:00
|
|
|
[tox]
|
2019-04-14 18:42:51 +00:00
|
|
|
envlist = py3,py27,pep8,cover_report
|
2015-07-30 18:09:16 +12:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2017-05-17 12:25:45 +12:00
|
|
|
commands = adjutant-api test {posargs}
|
2015-07-30 18:09:16 +12:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-12-06 18:09:36 +13:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2019-08-11 09:59:19 +02:00
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
doc8
|
2016-12-06 18:09:36 +13:00
|
|
|
|
2017-06-21 09:39:46 +12:00
|
|
|
[testenv:cover]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2017-10-30 14:13:05 +13:00
|
|
|
commands =
|
|
|
|
coverage run --source='adjutant' .tox/cover/bin/adjutant-api test {posargs}
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
|
|
|
|
[testenv:cover_report]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2017-05-29 15:57:05 +12:00
|
|
|
commands =
|
2017-12-05 22:33:43 +13:00
|
|
|
coverage run --source='.' .tox/cover_report/bin/adjutant-api test {posargs}
|
2017-05-29 15:57:05 +12:00
|
|
|
coverage report --include adjutant/* -m
|
|
|
|
|
2017-06-21 09:39:46 +12:00
|
|
|
[testenv:venv]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2017-06-21 09:39:46 +12:00
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2019-08-11 09:59:19 +02:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2017-08-28 16:59:48 +12:00
|
|
|
commands =
|
2019-08-11 09:59:19 +02:00
|
|
|
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
2017-08-28 16:59:48 +12:00
|
|
|
|
|
|
|
[testenv:api-ref]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2019-08-11 09:59:19 +02:00
|
|
|
deps = {[testenv:docs]deps}
|
2017-08-28 16:59:48 +12:00
|
|
|
commands =
|
2019-08-11 09:59:19 +02:00
|
|
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
2017-08-28 16:59:48 +12:00
|
|
|
|
2019-08-11 09:59:19 +02:00
|
|
|
[testenv:releasenotes]
|
|
|
|
basepython = python3
|
|
|
|
deps = {[testenv:docs]deps}
|
|
|
|
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
2017-06-21 09:39:46 +12:00
|
|
|
|
2016-12-06 18:09:36 +13:00
|
|
|
[flake8]
|
2018-12-02 01:01:51 +13:00
|
|
|
ignore = D100,D101,D102,D103,D104,D105,D200,D203,D202,D204,D205,D208,D400,D401,W503
|
2016-12-06 18:09:36 +13:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
2019-07-02 14:42:57 +12:00
|
|
|
exclude=.venv,venv,.env,env,.git,.tox,dist,doc,*lib/python*,*egg,releasenotes,adjutant/api/migrations/*,adjutant/actions/migrations
|
|
|
|
|
2019-08-11 09:59:19 +02:00
|
|
|
[doc8]
|
|
|
|
ignore-path=.tox,*.egg-info,doc/build,.eggs/*/EGG-INFO/*.txt,./*.txt,adjutant
|
|
|
|
extension=.txt,.rst,.inc
|