A collection of plugins for Rally framework designed for the OpenStack platform.
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.
 
 
 

105 lines
2.5 KiB

  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = py35,py34,py27,pep8
  5. [testenv]
  6. extras = {env:RALLY_EXTRAS:}
  7. setenv = VIRTUAL_ENV={envdir}
  8. HOME={homedir}
  9. LANG=en_US.UTF-8
  10. LANGUAGE=en_US:en
  11. LC_ALL=C
  12. PYTHONHASHSEED=0
  13. TOX_ENV_NAME={envname}
  14. whitelist_externals = find
  15. rm
  16. make
  17. deps = -r{toxinidir}/requirements.txt
  18. -r{toxinidir}/test-requirements.txt
  19. install_command = pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt -U {opts} {packages}
  20. usedevelop = True
  21. commands =
  22. find . -type f -name "*.pyc" -delete
  23. python {toxinidir}/tests/ci/pytest_launcher.py tests/unit --posargs={posargs}
  24. distribute = false
  25. basepython = python2.7
  26. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  27. [testenv:pep8]
  28. commands = flake8
  29. distribute = false
  30. [testenv:py34]
  31. basepython = python3.4
  32. [testenv:py35]
  33. basepython = python3.5
  34. [testenv:venv]
  35. commands = {posargs}
  36. [testenv:debug]
  37. commands = oslo_debug_helper -t tests {posargs}
  38. [testenv:debug34]
  39. basepython = python3.4
  40. commands = oslo_debug_helper -t tests {posargs}
  41. [testenv:debug35]
  42. basepython = python3.5
  43. commands = oslo_debug_helper -t tests {posargs}
  44. [testenv:cli]
  45. sitepackages = True
  46. commands =
  47. find . -type f -name "*.pyc" -delete
  48. {toxinidir}/tests/ci/rally_cli_job.sh
  49. [testenv:functional]
  50. sitepackages = True
  51. commands =
  52. find . -type f -name "*.pyc" -delete
  53. {toxinidir}/tests/ci/rally_functional_job.sh {posargs}
  54. [testenv:cover]
  55. commands = {toxinidir}/tests/ci/cover.sh {posargs}
  56. [testenv:docs]
  57. changedir = doc/source
  58. commands =
  59. rm -rf _build
  60. make html
  61. [testenv:genconfig]
  62. commands =
  63. oslo-config-generator --config-file etc/rally/rally-config-generator.conf
  64. [testenv:requirements]
  65. deps = requests[security]
  66. commands = python {toxinidir}/tests/ci/sync_requirements.py {posargs}
  67. [flake8]
  68. ignore = H703,H105
  69. show-source = true
  70. exclude=.venv,.git,.tox,dist,*lib/python*,*egg,tools,build,setup.py
  71. [hacking]
  72. import_exceptions = rally.common.i18n
  73. local-check-factory = tests.hacking.checks.factory
  74. [testenv:bindep]
  75. # Do not install any requirements. We want this to be fast and work even if
  76. # system dependencies are missing, since it's used to tell you what system
  77. # dependencies are missing! This also means that bindep must be installed
  78. # separately, outside of the requirements files.
  79. deps = bindep
  80. commands = bindep
  81. [testenv:self]
  82. commands = {toxinidir}/tests/ci/rally_self_job.sh {toxinidir}/rally-jobs/self-rally.yaml