Ansible deployment of the Kolla containers
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [tox]
  2. minversion = 2.5.0
  3. skipsdist = True
  4. envlist = py27,py37,pep8,pypy
  5. [testenv]
  6. usedevelop=True
  7. whitelist_externals = find
  8. rm
  9. install_command = pip install {opts} {packages}
  10. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  11. -r{toxinidir}/requirements.txt
  12. -r{toxinidir}/test-requirements.txt
  13. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  14. OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT
  15. PYTHON OS_TEST_PATH LISTOPT IDOPTION
  16. commands =
  17. find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
  18. find . -type d -name "__pycache__" -delete
  19. stestr run --slowest {posargs}
  20. [testenv:debug]
  21. basepython = python3
  22. commands = oslo_debug_helper -t tests {posargs}
  23. [testenv:cover]
  24. basepython = python3
  25. setenv = VIRTUAL_ENV={envdir}
  26. NOSE_WITH_COVERAGE=1
  27. NOSE_COVER_BRANCHES=1
  28. NOSE_COVER_HTML=1
  29. NOSE_COVER_HTML_DIR={toxinidir}/cover
  30. PYTHON=coverage run --source kolla_ansible,ansible/action_plugins,ansible/library,ansible/roles/keystone/files/ --parallel-mode
  31. commands =
  32. stestr run {posargs}
  33. coverage combine
  34. coverage html -d cover
  35. coverage xml -o cover/coverage.xml
  36. [testenv:pep8]
  37. basepython = python3
  38. # sphinx needs to be installed to make doc8 work properly
  39. deps =
  40. {[testenv]deps}
  41. -r{toxinidir}/doc/requirements.txt
  42. yamllint
  43. commands =
  44. {toxinidir}/tools/run-bashate.sh
  45. flake8 {posargs}
  46. doc8 doc/source
  47. python {toxinidir}/tools/validate-all-file.py
  48. bandit --skip B303 -r ansible kolla_ansible tests tools
  49. yamllint -s .
  50. [testenv:bandit]
  51. # B303: Use of insecure MD2, MD4, MD5, or SHA1 hash function.
  52. basepython = python3
  53. commands = bandit --skip B303 -r ansible kolla_ansible tests tools
  54. [testenv:venv]
  55. basepython = python3
  56. deps =
  57. -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  58. -r{toxinidir}/test-requirements.txt
  59. -r{toxinidir}/doc/requirements.txt
  60. commands = {posargs}
  61. [testenv:docs]
  62. basepython = python3
  63. deps =
  64. -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  65. -r{toxinidir}/requirements.txt
  66. -r{toxinidir}/doc/requirements.txt
  67. commands =
  68. rm -rf doc/build
  69. sphinx-build -W --keep-going -b html doc/source doc/build/html
  70. [testenv:deploy-guide]
  71. basepython = python3
  72. deps =
  73. -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  74. -r{toxinidir}/requirements.txt
  75. -r{toxinidir}/doc/requirements.txt
  76. commands =
  77. rm -rf deploy-guide/build
  78. sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html
  79. [testenv:pdf-docs]
  80. basepython = python3
  81. whitelist_externals = make
  82. deps = {[testenv:docs]deps}
  83. commands =
  84. sphinx-build -W --keep-going -b latex doc/source doc/build/pdf
  85. make -C doc/build/pdf
  86. [testenv:setupenv]
  87. basepython = python3
  88. commands =
  89. {toxinidir}/tools/setup_gate.sh
  90. {toxinidir}/tools/dump_info.sh
  91. [testenv:releasenotes]
  92. basepython = python3
  93. deps =
  94. -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  95. -r{toxinidir}/requirements.txt
  96. -r{toxinidir}/doc/requirements.txt
  97. commands =
  98. rm -rf releasenotes/build
  99. sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
  100. [flake8]
  101. show-source = True
  102. exclude=.eggs,.git,.tox,doc
  103. [testenv:lower-constraints]
  104. basepython = python3
  105. deps =
  106. -c{toxinidir}/lower-constraints.txt
  107. -r{toxinidir}/test-requirements.txt
  108. -r{toxinidir}/requirements.txt