OpenStack Compute (Nova) Client
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # noted to use py34 you need virtualenv >= 1.11.4
  2. [tox]
  3. envlist = py26,py27,py33,py34,pypy,pep8
  4. minversion = 1.6
  5. skipsdist = True
  6. [testenv]
  7. usedevelop = True
  8. # tox is silly... these need to be separated by a newline....
  9. whitelist_externals = find
  10. install_command = pip install -U {opts} {packages}
  11. setenv = VIRTUAL_ENV={envdir}
  12. deps = -r{toxinidir}/requirements.txt
  13. -r{toxinidir}/test-requirements.txt
  14. commands =
  15. find . -type f -name "*.pyc" -delete
  16. python setup.py testr --testr-args='{posargs}'
  17. [testenv:pep8]
  18. commands = flake8 {posargs}
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:functional]
  22. setenv =
  23. OS_TEST_PATH = ./novaclient/tests/functional
  24. [testenv:cover]
  25. commands = python setup.py testr --coverage --testr-args='{posargs}'
  26. [tox:jenkins]
  27. downloadcache = ~/cache/pip
  28. [flake8]
  29. # Following checks should be enabled in the future.
  30. #
  31. # H404 multi line docstring should start without a leading new line
  32. # H405 multi line docstring summary not separated with an empty line
  33. #
  34. # Following checks are ignored on purpose.
  35. #
  36. # Additional checks are also ignored on purpose: F811, F821
  37. ignore = E124,F811,F821,H404,H405
  38. show-source = True
  39. exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/source/conf.py
  40. [hacking]
  41. import_exceptions = novaclient.i18n