CLI supporting kolla-ansible deployment project
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.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = pep8,mypy,functional,functional-py35,py27,py35
  5. [testenv]
  6. usedevelop=True
  7. whitelist_externals = find
  8. bash
  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. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  13. OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT
  14. PYTHON OS_TEST_PATH LISTOPT IDOPTION
  15. commands =
  16. find . -type f -name "*.py[c|o]" -delete
  17. find . -type d -name "__pycache__" -delete
  18. [testenv:py27]
  19. commands = stestr run {posargs}
  20. [testenv:py35]
  21. commands = stestr run {posargs}
  22. [testenv:functional]
  23. whitelist_externals =
  24. {[testenv]whitelist_externals}
  25. {toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
  26. setenv =
  27. OS_TEST_PATH = ./kolla_cli/tests/functional
  28. KOLLA_ETC = /tmp/kollaclitest/etc/kolla
  29. KOLLA_HOME = /tmp/kollaclitest/usr/share/kolla-ansible
  30. KOLLA_TOOLS_DIR = {toxinidir}/tools
  31. commands =
  32. {[testenv]commands}
  33. {toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
  34. bash -c "pushd /tmp/kollaclitest/usr/share/kolla-ansible/git; python setup.py install; popd"
  35. stestr run {posargs} --serial
  36. [testenv:functional-py35]
  37. basepython = py35: python3.5
  38. setenv = {[testenv:functional]setenv}
  39. commands = {[testenv:functional]commands}
  40. whitelist_externals = {[testenv:functional]whitelist_externals}
  41. [testenv:pep8]
  42. basepython = python3
  43. deps = {[testenv]deps}
  44. commands = flake8 {posargs}
  45. [testenv:mypy]
  46. basepython = python3
  47. skip_install = true
  48. whitelist_externals = mypy
  49. commands =
  50. mypy --py2 --ignore-missing-imports kolla_cli
  51. [testenv:venv]
  52. basepython = python3
  53. commands = {posargs}
  54. [flake8]
  55. show-source = True
  56. exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  57. [testenv:bandit]
  58. basepython = python3
  59. commands = bandit -r kolla_cli
  60. [testenv:docs]
  61. basepython = python3
  62. commands = ./builddocs.sh