Tempest Plugin for Monasca project
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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [tox]
  2. minversion = 2.0
  3. envlist = py27,py35,pypy,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. OS_STDOUT_CAPTURE=1
  12. OS_STDERR_CAPTURE=1
  13. OS_TEST_TIMEOUT=60
  14. deps = -r{toxinidir}/test-requirements.txt
  15. commands = stestr run {posargs}
  16. [testenv:pep8]
  17. basepython = python3
  18. commands = flake8 {posargs}
  19. [testenv:venv]
  20. basepython = python3
  21. commands = {posargs}
  22. [testenv:cover]
  23. basepython = python3
  24. setenv =
  25. VIRTUAL_ENV={envdir}
  26. PYTHON=coverage run --source monasca_tempest_plugin --parallel-mode
  27. commands =
  28. stestr run {posargs}
  29. coverage combine
  30. coverage html -d cover
  31. coverage xml -o cover/coverage.xml
  32. [testenv:docs]
  33. basepython = python3
  34. commands = python setup.py build_sphinx
  35. [testenv:releasenotes]
  36. basepython = python3
  37. commands =
  38. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  39. [testenv:debug]
  40. basepython = python3
  41. commands = oslo_debug_helper {posargs}
  42. [flake8]
  43. # H106: Don’t put vim configuration in source files
  44. # H203: Use assertIs(Not)None to check for None
  45. enable-extensions=H106,H203
  46. max-complexity = 50
  47. max-line-length = 100
  48. builtins = _
  49. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build
  50. show-source = True