Arista drivers for ML2 and L3 Service 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 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. [tox]
  2. envlist = py27-dev,py35-dev,pep8-dev
  3. minversion = 2.0
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv = VIRTUAL_ENV={envdir}
  8. PYTHONWARNINGS=default::DeprecationWarning
  9. deps =
  10. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  11. -r{toxinidir}/test-requirements.txt
  12. -r{toxinidir}/requirements.txt
  13. whitelist_externals =
  14. find
  15. commands =
  16. stestr run {posargs}
  17. [testenv:dev]
  18. # run locally (not in the gate) using editable mode
  19. # https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
  20. # note that order is important to ensure dependencies don't override
  21. commands =
  22. pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"
  23. [testenv:py27-dev]
  24. commands =
  25. {[testenv:dev]commands}
  26. pip freeze
  27. stestr run {posargs}
  28. [testenv:py3-dev]
  29. basepython = python3
  30. commands =
  31. {[testenv:dev]commands}
  32. pip freeze
  33. stestr run {posargs}
  34. [testenv:pep8]
  35. basepython = python3
  36. commands =
  37. flake8
  38. neutron-db-manage --subproject networking-arista check_migration
  39. [testenv:pep8-dev]
  40. basepython = python3
  41. commands =
  42. {[testenv:dev]commands}
  43. pip freeze
  44. flake8
  45. neutron-db-manage --subproject networking-arista check_migration
  46. [testenv:venv]
  47. basepython = python3
  48. commands = {posargs}
  49. [testenv:cover]
  50. basepython = python3
  51. commands =
  52. find networking_arista -type f -name "*.pyc" -delete
  53. stestr run {posargs}
  54. coverage combine
  55. coverage html -d cover
  56. coverage xml -o cover/coverage.xml
  57. [testenv:docs]
  58. basepython = python3
  59. commands = python setup.py build_sphinx
  60. [flake8]
  61. # H803 skipped on purpose per list discussion.
  62. # E123, E125 skipped as they are invalid PEP-8.
  63. show-source = True
  64. ignore = E123,E125,H803
  65. builtins = _
  66. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  67. [hacking]
  68. import_exceptions = networking_arista._i18n
  69. [testenv:lower-constraints]
  70. basepython = python3
  71. setenv = OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:60}
  72. deps =
  73. -c{toxinidir}/lower-constraints.txt
  74. -r{toxinidir}/test-requirements.txt
  75. -r{toxinidir}/requirements.txt