Mistral Library with shared routines and utilities.
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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [tox]
  2. minversion = 2.0
  3. envlist = py36,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install {opts} {packages}
  8. setenv = VIRTUAL_ENV={envdir}
  9. PYTHONDONTWRITEBYTECODE = 1
  10. PYTHONWARNINGS=default::DeprecationWarning
  11. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  12. deps =
  13. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  14. -r{toxinidir}/test-requirements.txt
  15. -r{toxinidir}/requirements.txt
  16. commands =
  17. find . -type f -name "*.pyc" -delete
  18. stestr run --slowest {posargs}
  19. whitelist_externals =
  20. rm
  21. find
  22. [testenv:pep8]
  23. basepython = python3
  24. commands =
  25. python setup.py check --restructuredtext --strict
  26. flake8 {posargs}
  27. [testenv:venv]
  28. basepython = python3
  29. commands = {posargs}
  30. [testenv:cover]
  31. basepython = python3
  32. setenv =
  33. PYTHON=coverage run --source $project --parallel-mode
  34. commands =
  35. stestr run {posargs}
  36. coverage combine
  37. coverage html -d cover
  38. coverage xml -o cover/coverage.xml
  39. [testenv:docs]
  40. basepython = python3
  41. commands = python setup.py build_sphinx
  42. [testenv:releasenotes]
  43. basepython = python3
  44. commands =
  45. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  46. [testenv:debug]
  47. basepython = python3
  48. whitelist_externals = oslo_debug_helper
  49. commands = oslo_debug_helper -t mistral_lib/tests {posargs}
  50. [flake8]
  51. # E123, E125 skipped as they are invalid PEP-8.
  52. show-source = True
  53. ignore = E123,E125
  54. builtins = _
  55. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  56. [testenv:lower-constraints]
  57. basepython = python3
  58. deps =
  59. -c{toxinidir}/lower-constraints.txt
  60. -r{toxinidir}/test-requirements.txt
  61. -r{toxinidir}/requirements.txt