Fujitsu Neutron Plugin
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.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  12. -r{toxinidir}/requirements.txt
  13. -r{toxinidir}/test-requirements.txt
  14. whitelist_externals = bash
  15. commands = stestr run {posargs}
  16. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  17. [testenv:pep8]
  18. basepython = python3
  19. commands = flake8
  20. [testenv:venv]
  21. basepython = python3
  22. commands = {posargs}
  23. [testenv:cover]
  24. basepython = python3
  25. setenv =
  26. {[testenv]setenv}
  27. PYTHON=coverage run --source networking_fujitsu --parallel-mode
  28. commands =
  29. stestr run {posargs}
  30. coverage combine
  31. coverage report
  32. coverage html -d cover
  33. coverage xml -o cover/coverage.xml
  34. [testenv:docs]
  35. basepython = python3
  36. commands = python setup.py build_sphinx
  37. [testenv:releasenotes]
  38. basepython = python3
  39. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  40. [testenv:debug]
  41. basepython = python3
  42. commands = oslo_debug_helper -t networking_fujitsu/tests {posargs}
  43. [flake8]
  44. # N530 direct neutron imports not allowed
  45. ignore = N530
  46. show-source = True
  47. builtins = _
  48. exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,.tmp
  49. [hacking]
  50. import_exceptions = networking_fujitsu._i18n
  51. local-check-factory = neutron_lib.hacking.checks.factory
  52. [testenv:lower-constraints]
  53. basepython = python3
  54. deps =
  55. -c{toxinidir}/lower-constraints.txt
  56. -r{toxinidir}/test-requirements.txt
  57. -r{toxinidir}/requirements.txt