OVSDB application library
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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,py27,pypy,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv =
  8. VIRTUAL_ENV={envdir}
  9. PYTHONWARNINGS=default::DeprecationWarning
  10. OS_TEST_PATH=./ovsdbapp/tests/unit
  11. install_command = pip install {opts} {packages}
  12. deps =
  13. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  14. -r{toxinidir}/test-requirements.txt
  15. -r{toxinidir}/requirements.txt
  16. commands = stestr run --slowest {posargs}
  17. [testenv:pep8]
  18. basepython = python3
  19. commands = flake8
  20. {toxinidir}/tools/coding-checks.sh --all '{posargs}'
  21. [testenv:venv]
  22. basepython = python3
  23. commands = {posargs}
  24. [testenv:cover]
  25. basepython = python3
  26. commands = python setup.py test --coverage --testr-args='{posargs}'
  27. [testenv:docs]
  28. basepython = python3
  29. commands = python setup.py build_sphinx
  30. [testenv:releasenotes]
  31. basepython = python3
  32. commands =
  33. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  34. [testenv:debug]
  35. basepython = python3
  36. commands = oslo_debug_helper {posargs}
  37. [testenv:functional]
  38. setenv = {[testenv]setenv}
  39. OS_TEST_PATH=./ovsdbapp/tests/functional
  40. OVS_SRCDIR={envdir}/src/ovs
  41. passenv = KEEP_VENV
  42. commands =
  43. {toxinidir}/tools/setup-ovs.sh
  44. {[testenv]commands}
  45. [flake8]
  46. # E123, E125 skipped as they are invalid PEP-8.
  47. show-source = True
  48. ignore = E123,E125
  49. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  50. [testenv:lower-constraints]
  51. basepython = python3
  52. deps =
  53. -c{toxinidir}/lower-constraints.txt
  54. -r{toxinidir}/test-requirements.txt
  55. -r{toxinidir}/requirements.txt