Kubernetes integration with OpenStack networking
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [tox]
  2. minversion = 2.3.1
  3. envlist = py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. passenv = HOME
  7. setenv = VIRTUAL_ENV={envdir}
  8. usedevelop = True
  9. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  10. deps = -r{toxinidir}/requirements.txt
  11. -r{toxinidir}/test-requirements.txt
  12. whitelist_externals = sh
  13. find
  14. rm
  15. commands = find {toxinidir} -type f -name "*.py[c|o]" -delete
  16. rm -f .testrepository/times.dbm
  17. stestr run {posargs}
  18. [testenv:fullstack]
  19. basepython = python2.7
  20. setenv = OS_TEST_PATH=./kuryr/tests/fullstack
  21. passenv = OS_*
  22. [testenv:debug]
  23. commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs}
  24. [testenv:debug-py27]
  25. basepython = python2.7
  26. commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs}
  27. [testenv:debug-py35]
  28. basepython = python3.5
  29. commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs}
  30. [testenv:pep8]
  31. basepython = python3
  32. commands = flake8
  33. [testenv:venv]
  34. basepython = python3
  35. commands = {posargs}
  36. [testenv:cover]
  37. basepython = python3
  38. commands =
  39. rm -f .testrepository/times.dbm
  40. python setup.py test --coverage --testr-args={posargs} \
  41. --coverage-package-name=kuryr_kubernetes
  42. coverage report
  43. [testenv:docs]
  44. basepython = python3
  45. deps = -r{toxinidir}/doc/requirements.txt
  46. commands = sphinx-build -W -b html doc/source doc/build/html
  47. [flake8]
  48. show-source = true
  49. enable-extensions = H106,H203
  50. # TODO(dougw) neutron/tests/unit/vmware exclusion is a temporary services split hack
  51. exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,neutron/tests/unit/vmware*,releasenotes
  52. [testenv:pylint]
  53. basepython = python3
  54. deps =
  55. {[testenv]deps}
  56. pylint
  57. commands =
  58. pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron}
  59. [hacking]
  60. import_exceptions = neutron.i18n
  61. local-check-factory = neutron_lib.hacking.checks.factory
  62. [testenv:genconfig]
  63. basepython = python3
  64. commands = oslo-config-generator --config-file=etc/oslo-config-generator/kuryr.conf
  65. [testenv:releasenotes]
  66. basepython = python3
  67. deps = -r{toxinidir}/doc/requirements.txt
  68. commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  69. [testenv:lower-constraints]
  70. basepython = python3
  71. deps =
  72. -c{toxinidir}/lower-constraints.txt
  73. -r{toxinidir}/test-requirements.txt
  74. -r{toxinidir}/requirements.txt