Cumulus plugins/drivers for Neutron
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.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [tox]
  2. minversion = 2.0
  3. envlist = py34,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r requirements.txt -U {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. deps = -r{toxinidir}/test-requirements.txt
  12. -egit+https://git.openstack.org/openstack/neutron.git#egg=neutron
  13. whitelist_externals = sh
  14. commands = python setup.py testr --slowest --testr-args='{posargs}'
  15. [testenv:pep8]
  16. commands =
  17. flake8 {posargs}
  18. neutron-db-manage --subproject networking-cumulus check_migration
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:cover]
  22. commands = python setup.py test --coverage --testr-args='{posargs}'
  23. [testenv:docs]
  24. commands = python setup.py build_sphinx
  25. [testenv:releasenotes]
  26. commands =
  27. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  28. [testenv:debug]
  29. commands = oslo_debug_helper {posargs}
  30. [flake8]
  31. # E123, E125 skipped as they are invalid PEP-8.
  32. show-source = True
  33. ignore = E123,E125
  34. builtins = _
  35. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  36. [hacking]
  37. import_exceptions = networking_cumulus._i18n