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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. commands=
  32. bash -c "rm -rf doc/build"
  33. doc8 doc
  34. python setup.py build_sphinx
  35. [doc8]
  36. # Settings for doc8:
  37. extensions = .rst
  38. [testenv:releasenotes]
  39. commands =
  40. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  41. # environment used by the -infra templated docs job
  42. [testenv:venv]
  43. commands =
  44. {posargs}
  45. [testenv:pep8]
  46. commands =
  47. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  48. bash -c "{toxinidir}/tests/common/test-pep8.sh"
  49. [flake8]
  50. # Ignores the following rules due to how ansible modules work in general
  51. # F403 'from ansible.module_utils.basic import *' used;
  52. # unable to detect undefined names
  53. ignore=F403
  54. [testenv:bashate]
  55. commands =
  56. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  57. bash -c "{toxinidir}/tests/common/test-bashate.sh"
  58. [testenv:ansible]
  59. deps =
  60. {[testenv]deps}
  61. -rhttps://git.openstack.org/cgit/openstack/openstack-ansible/plain/global-requirement-pins.txt
  62. -rhttps://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt
  63. [testenv:ansible-syntax]
  64. deps =
  65. {[testenv:ansible]deps}
  66. commands =
  67. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  68. bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
  69. [testenv:ansible-lint]
  70. deps =
  71. {[testenv:ansible]deps}
  72. commands =
  73. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  74. bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
  75. [testenv:functional]
  76. deps =
  77. {[testenv:ansible]deps}
  78. commands =
  79. bash -c "{toxinidir}/tests/tests-repo-clone.sh"
  80. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  81. [testenv:linters]
  82. deps =
  83. {[testenv:ansible]deps}
  84. commands =
  85. {[testenv:pep8]commands}
  86. {[testenv:bashate]commands}
  87. {[testenv:ansible-lint]commands}
  88. {[testenv:ansible-syntax]commands}
  89. {[testenv:docs]commands}