Tempest plugin for the Neutron L2GW.
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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [tox]
  2. envlist = py36,py35,py34,py27,pep8
  3. minversion = 2.0
  4. skipsdist = True
  5. [testenv]
  6. setenv =
  7. VIRTUAL_ENV={envdir}
  8. PYTHONWARNINGS=default::DeprecationWarning
  9. usedevelop = True
  10. install_command = pip install {opts} {packages}
  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 = *
  15. commands =
  16. find . -type f -name "*.py[c|o]" -delete
  17. bash tools/pretty_tox_serial.sh '{posargs}'
  18. [testenv:pep8]
  19. basepython = python3
  20. commands = flake8
  21. [testenv:py27]
  22. setenv = OS_FAIL_ON_MISSING_DEPS=1
  23. [testenv:venv]
  24. basepython = python3
  25. commands = {posargs}
  26. [testenv:cover]
  27. basepython = python3
  28. commands = python setup.py testr --coverage --testr-args='{posargs}'
  29. [testenv:docs]
  30. basepython = python3
  31. commands = python setup.py build_sphinx
  32. [flake8]
  33. # H803 skipped on purpose per list discussion.
  34. # H302 import only modules
  35. # E123 skipped as they are invalid PEP-8.
  36. # H904 Wrap long lines in parentheses instead of a backslash
  37. show-source = True
  38. ignore = E123,H803,H302,H904
  39. builtins = _
  40. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.tmp
  41. import-order-style = pep8
  42. [testenv:api]
  43. basepython = python3
  44. setenv =
  45. {[testenv]setenv}
  46. OS_TEST_PATH=./networking_l2gw_tempest_plugin/tests/api
  47. TEMPEST_CONFIG_DIR={env:TEMPEST_CONFIG_DIR:/opt/stack/tempest/etc}
  48. OS_TEST_API_WITH_REST=1
  49. OS_TEST_TIMEOUT=90
  50. deps = {[testenv]deps}
  51. commands =
  52. find . -type f -name "*.py[c|o]" -delete
  53. tempest run --serial {posargs}