A modular, vendor-neutral API, that wraps provisioning instructions for all CDN vendors that support it.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

95 wiersze
2.6KB

  1. [tox]
  2. minversion = 1.6
  3. envlist = py34,py27,functional,functional-py34,pypy,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. # Customize pip command, add -U to force updates.
  8. setenv = VIRTUAL_ENV={envdir}
  9. LC_ALL = en_US.UTF-8
  10. install_command = pip install -U {opts} {packages}
  11. passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  12. deps = -r{toxinidir}/requirements/requirements.txt
  13. -r{toxinidir}/tests/test-requirements.txt
  14. commands = pip install git+https://github.com/stackforge/opencafe.git#egg=cafe
  15. {toxinidir}/tools/ostestr_compat_shim.sh {posargs}
  16. [testenv:common]
  17. # Fake job to define environment variables shared between dsvm/non-dsvm jobs
  18. setenv = OS_TEST_TIMEOUT=180
  19. [testenv:functional]
  20. basepython = python2.7
  21. setenv = {[testenv]setenv}
  22. {[testenv:common]setenv}
  23. OS_TEST_PATH=./tests/functional
  24. OS_LOG_PATH={env:OS_LOG_PATH:{homedir}/.poppy/logs}
  25. deps =
  26. {[testenv]deps}
  27. [testenv:functional-py34]
  28. basepython = python3.4
  29. setenv = {[testenv:functional]setenv}
  30. deps =
  31. {[testenv:functional]deps}
  32. [testenv:pep8]
  33. commands = flake8
  34. [testenv:lint2]
  35. basepython = python2
  36. deps = {[testenv]deps}
  37. pylint
  38. commands = pylint ./poppy
  39. pylint ./tests
  40. [testenv:lint3]
  41. basepython = python3
  42. deps = {[testenv]deps}
  43. pylint
  44. commands = pylint ./poppy
  45. pylint ./tests
  46. [testenv:docs]
  47. deps = -r{toxinidir}/requirements/requirements.txt
  48. -r{toxinidir}/tests/test-requirements.txt
  49. commands =
  50. python setup.py build_sphinx -E -a
  51. python setup.py build_sphinx -E -a -b doctest
  52. python setup.py build_sphinx -E -a -b coverage
  53. [testenv:cover]
  54. install_command = pip install -U {opts} {packages}
  55. basepython = python2.7
  56. commands =
  57. python setup.py test --coverage --coverage-package-name='poppy' --testr-args='{posargs}'
  58. coverage xml
  59. [testenv:venv]
  60. commands = {posargs}
  61. [flake8]
  62. builtins = __CDN_SETUP__
  63. exclude = build,.venv*,venv*,.git,.tox,dist,doc,*lib/python*,*.egg,.update-venv
  64. [hacking]
  65. import_exceptions = poppy.common._i18n._
  66. [testenv:api]
  67. deps = -r{toxinidir}/requirements/requirements.txt
  68. -r{toxinidir}/tests/test-requirements.txt
  69. setenv = CAFE_CONFIG_FILE_PATH={homedir}/.poppy/tests.conf
  70. CAFE_ENGINE_CONFIG_FILE_PATH={homedir}/.poppy/tests.conf
  71. CAFE_ROOT_LOG_PATH={homedir}/.poppy/logs
  72. CAFE_TEST_LOG_PATH={homedir}/.poppy/logs
  73. OS_TEST_PATH=./tests/api
  74. OS_LOG_PATH={env:OS_LOG_PATH:{homedir}/.poppy/logs}
  75. commands =
  76. pip install git+https://github.com/openstack/opencafe.git#egg=cafe
  77. #./run_poppy.sh -d
  78. {toxinidir}/tools/ostestr_compat_shim.sh