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

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