Bridge between container framework networking and storage models to OpenStack networking and storage abstractions.
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 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [tox]
  2. minversion = 2.3.1
  3. envlist = py35,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. # Note the hash seed is set to 0 until neutron can be tested with a
  7. # random hash seed successfully.
  8. setenv = VIRTUAL_ENV={envdir}
  9. PYTHONHASHSEED=0
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. usedevelop = True
  12. install_command =
  13. {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  14. deps = -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. whitelist_externals = sh
  17. find
  18. commands = find . -type f -name "*.py[c|o]" -delete
  19. find . -type d -name "__pycache__" -delete
  20. ostestr '{posargs}'
  21. [testenv:fullstack]
  22. basepython = python2.7
  23. setenv = OS_TEST_PATH=./kuryr/tests/fullstack
  24. [testenv:debug]
  25. commands = oslo_debug_helper -t kuryr/tests {posargs}
  26. [testenv:debug-py27]
  27. basepython = python2.7
  28. commands = oslo_debug_helper -t kuryr/tests {posargs}
  29. [testenv:debug-py35]
  30. basepython = python3.5
  31. commands = oslo_debug_helper -t kuryr/tests {posargs}
  32. [testenv:pep8]
  33. commands = flake8
  34. [testenv:venv]
  35. commands = {posargs}
  36. [testenv:cover]
  37. commands =
  38. python setup.py test --coverage --testr-args='{posargs}' \
  39. --coverage-package-name=kuryr.lib
  40. coverage report
  41. [testenv:docs]
  42. commands = python setup.py build_sphinx
  43. [flake8]
  44. # E125 continuation line does not distinguish itself from next logical line
  45. # E126 continuation line over-indented for hanging indent
  46. # E129 visually indented line with same indent as next logical line
  47. # E265 block comment should start with '# '
  48. # N530 direct neutron imports not allowed
  49. ignore = E125,E126,E129,E265,H301,N530
  50. show-source = true
  51. exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,releasenotes
  52. [testenv:pylint]
  53. deps =
  54. {[testenv]deps}
  55. pylint
  56. commands =
  57. pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron}
  58. [hacking]
  59. import_exceptions = neutron.i18n
  60. local-check-factory = neutron_lib.hacking.checks.factory
  61. [testenv:genconfig]
  62. commands = oslo-config-generator --config-file=etc/kuryr-config-generator.conf
  63. [testenv:releasenotes]
  64. commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html