Role memcached_server for OpenStack-Ansible
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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [tox]
  2. minversion = 2.0
  3. skipsdist = True
  4. envlist = docs,linters,functional
  5. [testenv]
  6. usedevelop = True
  7. install_command =
  8. pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  9. deps =
  10. -r{toxinidir}/test-requirements.txt
  11. commands =
  12. /usr/bin/find . -type f -name "*.pyc" -delete
  13. passenv =
  14. HOME
  15. USER
  16. http_proxy
  17. HTTP_PROXY
  18. https_proxy
  19. HTTPS_PROXY
  20. no_proxy
  21. NO_PROXY
  22. whitelist_externals =
  23. bash
  24. setenv =
  25. PYTHONUNBUFFERED=1
  26. ROLE_NAME=memcached_server
  27. TEST_IDEMPOTENCE=false
  28. VIRTUAL_ENV={envdir}
  29. WORKING_DIR={toxinidir}
  30. [testenv:docs]
  31. deps = -r{toxinidir}/doc/requirements.txt
  32. commands=
  33. bash -c "rm -rf doc/build"
  34. doc8 doc
  35. sphinx-build -b html doc/source doc/build/html
  36. [doc8]
  37. # Settings for doc8:
  38. extensions = .rst
  39. [testenv:releasenotes]
  40. deps = -r{toxinidir}/doc/requirements.txt
  41. commands =
  42. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  43. # environment used by the -infra templated docs job
  44. [testenv:venv]
  45. commands =
  46. {posargs}
  47. [testenv:pep8]
  48. commands =
  49. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  50. bash -c "{toxinidir}/tests/common/test-pep8.sh"
  51. [flake8]
  52. # Ignores the following rules due to how ansible modules work in general
  53. # F403 'from ansible.module_utils.basic import *' used;
  54. # unable to detect undefined names
  55. ignore=F403
  56. [testenv:bashate]
  57. commands =
  58. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  59. bash -c "{toxinidir}/tests/common/test-bashate.sh"
  60. [testenv:ansible]
  61. deps =
  62. {[testenv]deps}
  63. -rhttps://git.openstack.org/cgit/openstack/openstack-ansible/plain/global-requirement-pins.txt
  64. -rhttps://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt
  65. [testenv:ansible-syntax]
  66. deps =
  67. {[testenv:ansible]deps}
  68. commands =
  69. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  70. bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
  71. [testenv:ansible-lint]
  72. deps =
  73. {[testenv:ansible]deps}
  74. commands =
  75. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  76. bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
  77. [testenv:functional]
  78. deps =
  79. {[testenv:ansible]deps}
  80. commands =
  81. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  82. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  83. [testenv:linters]
  84. deps =
  85. {[testenv:ansible]deps}
  86. commands =
  87. {[testenv:pep8]commands}
  88. {[testenv:bashate]commands}
  89. {[testenv:ansible-lint]commands}
  90. {[testenv:ansible-syntax]commands}