A project used to hold out-of-tree ironic drivers
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.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [tox]
  2. minversion = 1.8
  3. skipsdist = True
  4. envlist = py35,py27,pep8
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  8. setenv = VIRTUAL_ENV={envdir}
  9. PYTHONDONTWRITEBYTECODE = 1
  10. LANGUAGE=en_US
  11. LC_ALL=en_US.UTF-8
  12. TESTS_DIR=./ironic_staging_drivers/tests/unit/
  13. deps =
  14. -r{toxinidir}/test-requirements.txt
  15. -r{toxinidir}/extra-requirements.txt
  16. commands = ostestr {posargs}
  17. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  18. [testenv:pep8]
  19. basepython = python3
  20. commands =
  21. flake8 {posargs}
  22. doc8 README.rst CONTRIBUTING.rst HACKING.rst doc/source
  23. [testenv:venv]
  24. basepython = python3
  25. commands = {posargs}
  26. [testenv:cover]
  27. basepython = python3
  28. setenv = {[testenv]setenv}
  29. PYTHON=coverage run --source ironic_staging_drivers --omit='*tests*' --parallel-mode
  30. commands =
  31. coverage erase
  32. ostestr {posargs}
  33. coverage combine
  34. coverage report --omit='*tests*'
  35. coverage html -d ./cover --omit='*tests*'
  36. [testenv:docs]
  37. basepython = python3
  38. commands = python setup.py build_sphinx
  39. [testenv:debug]
  40. basepython = python3
  41. commands = oslo_debug_helper {posargs}
  42. [testenv:releasenotes]
  43. basepython = python3
  44. commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  45. [flake8]
  46. # [E129] visually indented line with same indent as next logical line
  47. ignore = E129
  48. exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  49. import-order-style = pep8
  50. application-import-names = ironic_staging_drivers
  51. max-complexity=17
  52. # [H106] Don't put vim configuration in source files.
  53. # [H203] Use assertIs(Not)None to check for None.
  54. # [H904] Delay string interpolations at logging calls.
  55. enable-extensions=H106,H203,H904
  56. [testenv:lower-constraints]
  57. basepython = python3
  58. deps =
  59. -c{toxinidir}/lower-constraints.txt
  60. -r{toxinidir}/test-requirements.txt
  61. -r{toxinidir}/extra-requirements.txt