Tempest Plugin for Mistral project
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 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [tox]
  2. minversion = 2.0
  3. envlist = py36,py35,py27,pypy,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. OS_STDOUT_CAPTURE=1
  12. OS_STDERR_CAPTURE=1
  13. OS_TEST_TIMEOUT=60
  14. deps = -r{toxinidir}/test-requirements.txt
  15. commands = stestr run {posargs}
  16. [testenv:pep8]
  17. basepython = python3
  18. commands = flake8 {posargs}
  19. [testenv:venv]
  20. basepython = python3
  21. commands = {posargs}
  22. [testenv:cover]
  23. basepython = python3
  24. setenv =
  25. VIRTUAL_ENV={envdir}
  26. PYTHON=coverage run --source mistral-tempest-plugin --parallel-mode
  27. commands =
  28. stestr run {posargs}
  29. coverage combine
  30. coverage html -d cover
  31. coverage xml -o cover/coverage.xml
  32. [testenv:docs]
  33. basepython = python3
  34. commands = sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
  35. [testenv:releasenotes]
  36. basepython = python3
  37. commands =
  38. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  39. [testenv:debug]
  40. basepython = python3
  41. commands = oslo_debug_helper {posargs}
  42. [flake8]
  43. # E123, E125 skipped as they are invalid PEP-8.
  44. show-source = True
  45. ignore = E123,E125
  46. builtins = _
  47. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build