adjutant/tox.ini
Ghanshyam Mann 286c530451 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ifcaeb42f78e37af1bdb046eb92985212c0574d0c
2019-05-17 13:14:40 +12:00

51 lines
1.2 KiB
INI

[tox]
envlist = py3,py27,pep8,cover_report
skipsdist = True
[testenv]
usedevelop = True
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = adjutant-api test {posargs}
setenv = VIRTUAL_ENV={envdir}
[testenv:pep8]
basepython = python3
commands = flake8
[testenv:cover]
basepython = python3
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]
basepython = python3
commands =
coverage run --source='.' .tox/cover_report/bin/adjutant-api test {posargs}
coverage report --include adjutant/* -m
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
commands =
doc8 doc/source
python setup.py build_sphinx
[testenv:api-ref]
basepython = python3
commands =
doc8 api-ref/source
python setup.py build_sphinx -s api-ref/source/ --build-dir api-ref/build/
[flake8]
ignore = D100,D101,D102,D103,D104,D105,D200,D203,D202,D204,D205,D208,D400,D401,W503
show-source = true
builtins = _
exclude=.venv,venv,.env,env,.git,.tox,dist,doc,*lib/python*,*egg,adjutant/api/migrations/*,adjutant/actions/migrations