2015-07-30 18:09:16 +12:00
|
|
|
[tox]
|
2019-05-17 10:48:32 +12:00
|
|
|
envlist = py27,py3,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
|
2016-12-06 18:09:36 +13:00
|
|
|
commands = flake8
|
|
|
|
|
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
|
2017-08-28 16:59:48 +12:00
|
|
|
commands =
|
|
|
|
doc8 doc/source
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
|
|
|
[testenv:api-ref]
|
2018-06-08 13:42:18 +08:00
|
|
|
basepython = python3
|
2017-08-28 16:59:48 +12:00
|
|
|
commands =
|
|
|
|
doc8 api-ref/source
|
|
|
|
python setup.py build_sphinx -s api-ref/source/ --build-dir api-ref/build/
|
|
|
|
|
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 = _
|
2017-05-17 12:25:45 +12:00
|
|
|
exclude=.venv,venv,.env,env,.git,.tox,dist,doc,*lib/python*,*egg,adjutant/api/migrations/*,adjutant/actions/migrations
|