DevStack supporting tools in python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [tox]
  2. minversion = 2.0
  3. envlist = py34,py27,pypy,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. deps = -r{toxinidir}/test-requirements.txt
  12. commands = python setup.py test --slowest --testr-args='{posargs}'
  13. [testenv:pep8]
  14. commands = flake8 {posargs}
  15. [testenv:venv]
  16. commands = {posargs}
  17. [testenv:cover]
  18. commands = python setup.py test --coverage --testr-args='{posargs}'
  19. [testenv:docs]
  20. commands = python setup.py build_sphinx
  21. [testenv:releasenotes]
  22. commands =
  23. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  24. [testenv:debug]
  25. commands = oslo_debug_helper {posargs}
  26. [flake8]
  27. # E123, E125 skipped as they are invalid PEP-8.
  28. show-source = True
  29. ignore = E123,E125
  30. builtins = _
  31. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build