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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,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. basepython = python3
  15. commands = flake8 {posargs}
  16. [testenv:venv]
  17. basepython = python3
  18. commands = {posargs}
  19. [testenv:cover]
  20. basepython = python3
  21. commands = python setup.py test --coverage --testr-args='{posargs}'
  22. [testenv:docs]
  23. basepython = python3
  24. commands = python setup.py build_sphinx
  25. [testenv:releasenotes]
  26. basepython = python3
  27. commands =
  28. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  29. [testenv:debug]
  30. commands = oslo_debug_helper {posargs}
  31. [flake8]
  32. # E123, E125 skipped as they are invalid PEP-8.
  33. show-source = True
  34. ignore = E123,E125
  35. builtins = _
  36. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build