Neutron integration for Huawei Technologies
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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [tox]
  2. envlist = py34,py27,pep8
  3. minversion = 1.6
  4. skipsdist = True
  5. [testenv]
  6. setenv = VIRTUAL_ENV={envdir}
  7. PYTHONWARNINGS=default::DeprecationWarning
  8. usedevelop = True
  9. install_command = pip install -r requirements.txt -U {opts} {packages}
  10. deps = -r{toxinidir}/test-requirements.txt
  11. whitelist_externals = bash
  12. commands = bash tools/pretty_tox.sh '{posargs}'
  13. [testenv:pep8]
  14. commands =
  15. flake8
  16. {[testenv:genconfig]commands}
  17. [testenv:i18n]
  18. commands = python ./tools/check_i18n.py ./networking_huawei ./tools/i18n_cfg.py
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:cover]
  22. commands = python setup.py test --coverage --coverage-package-name=networking_huawei --testr-args='{posargs}'
  23. coverage report
  24. [testenv:docs]
  25. commands = python setup.py build_sphinx
  26. [hacking]
  27. import_exceptions = neutron.i18n
  28. local-check-factory = neutron.hacking.checks.factory
  29. show-source = True
  30. ignore = E123,E124,E125,H803
  31. [flake8]
  32. # H803 skipped on purpose per list discussion.
  33. # E123, E125 skipped as they are invalid PEP-8.
  34. show-source = True
  35. ignore = E123,E125,H803
  36. builtins = _
  37. exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
  38. [testenv:genconfig]
  39. commands = {toxinidir}/tools/generate_config_file_samples.sh