Install utility to deploy OpenStack on multiple hosts.
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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [tox]
  2. minversion = 2.0
  3. envlist = py27,py36,pep8,releasenotes
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv = VIRTUAL_ENV={envdir}
  8. LANG=en_US.UTF-8
  9. LANGUAGE=en_US:en
  10. LC_ALL=C
  11. deps = -r{toxinidir}/requirements.txt
  12. -r{toxinidir}/test-requirements.txt
  13. commands = /usr/bin/find . -type f -name "*.pyc" -delete
  14. stestr run {posargs}
  15. [tox:jenkins]
  16. sitepackages = True
  17. [testenv:pep8]
  18. commands = flake8
  19. [testenv:cover]
  20. setenv = NOSE_WITH_COVERAGE=1
  21. [testenv:venv]
  22. commands = {posargs}
  23. [testenv:docs]
  24. commands = python setup.py build_sphinx
  25. [testenv:releasenotes]
  26. deps = -r{toxinidir}/test-requirements.txt
  27. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  28. [flake8]
  29. # H803 skipped on purpose per list discussion.
  30. # E123, E125 skipped as they are invalid PEP-8.
  31. #
  32. # All other checks should be enabled in the future.
  33. ignore = E123,E125,H803,F403,F821,F811,F841,E501,H302,H303,H304,H306,H405,H404,H305,H307,H501,H201,H101
  34. show-source = True
  35. exclude=.venv,.git,.tox,.eggs