Monitoring plugin framework for OpenStack clouds
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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [tox]
  2. envlist = {pypy,pep8,py27,py3}
  3. [testenv]
  4. usedevelop = True
  5. deps =
  6. coverage
  7. -rrequirements.txt
  8. -rtest-requirements.txt
  9. passenv =
  10. HOME
  11. http_proxy
  12. HTTP_PROXY
  13. https_proxy
  14. HTTPS_PROXY
  15. no_proxy
  16. NO_PROXY
  17. whitelist_externals =
  18. bash
  19. commands =
  20. /usr/bin/find . -type f -name "*.pyc" -delete
  21. [testenv:coverage]
  22. commands =
  23. coverage run -m pytest --capture=no --strict {posargs}
  24. coverage report -m --omit="*/test*" --fail-under=90
  25. [testenv:venv]
  26. commands =
  27. {posargs}
  28. [testenv:docs]
  29. commands=
  30. bash -c "rm -rf doc/build"
  31. doc8 doc
  32. sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
  33. [doc8]
  34. # Settings for doc8:
  35. extensions = .rst
  36. [testenv:releasenotes]
  37. commands =
  38. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  39. [testenv:linters]
  40. deps =
  41. {[testenv:pep8]deps}
  42. commands =
  43. {[testenv:pep8]commands}
  44. [testenv:integration]
  45. commands =
  46. coverage run -m pytest --capture=no --strict "tests/int"
  47. [testenv:unit]
  48. commands =
  49. coverage run -m pytest --capture=no --strict "tests/unit"
  50. [testenv:pep8]
  51. deps =
  52. flake8
  53. flake8-import-order
  54. pep8-naming
  55. commands =
  56. flake8
  57. [testenv:py3pep8]
  58. basepython = python3
  59. deps =
  60. flake8
  61. flake8-import-order
  62. pep8-naming
  63. commands =
  64. flake8
  65. [flake8]
  66. # tests/common/ansible-lint/test comes from openstack-ansible-tests,
  67. # blacklist it
  68. exclude = .tox,*.egg,.git,_build,docs-rst,tests/common/ansible-lint/test