46 lines
1.2 KiB
INI
46 lines
1.2 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py35,py36,py27,pypy,pep8,docs-gnocchi.xyz
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
GNOCCHI_CLIENT_EXEC_DIR={envdir}/bin
|
|
passenv = GNOCCHI_* OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
|
|
deps = .[test]
|
|
http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz#egg=gnocchi[postgresql,file]
|
|
pifpaf
|
|
# NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.txt
|
|
commands = pifpaf run gnocchi -- python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
deps = hacking<0.13,>=0.12
|
|
doc8>=0.8.0
|
|
commands = flake8
|
|
doc8 --ignore-path doc/source/gnocchi.rst --ignore-path-errors doc/source/shell.rst;D000 doc/source
|
|
|
|
[testenv:venv]
|
|
deps = .[test,doc]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs-gnocchi.xyz]
|
|
deps = .[test,doc]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = pifpaf --debug run gnocchi -- oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
ignore =
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
[travis]
|
|
python = 3.6: py36, pep8, docs-gnocchi.xyz
|