A declarative framework for resilient Kubernetes deployment.
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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [tox]
  2. envlist = pep8,py35,bandit,docs
  3. [testenv]
  4. basepython=python3
  5. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  6. [testenv:venv]
  7. commands = {posargs}
  8. [testenv:py35]
  9. setenv =
  10. PYTHONWARNING=all
  11. deps = -r{toxinidir}/requirements-frozen.txt
  12. -r{toxinidir}/test-requirements.txt
  13. commands =
  14. pytest {posargs}
  15. [testenv:py36]
  16. setenv =
  17. PYTHONWARNING=all
  18. deps = -r{toxinidir}/requirements-frozen.txt
  19. -r{toxinidir}/test-requirements.txt
  20. commands =
  21. pytest {posargs}
  22. [testenv:bandit]
  23. deps =
  24. -r{toxinidir}/test-requirements.txt
  25. commands =
  26. bandit -r promenade
  27. [testenv:docs]
  28. whitelist_externals = rm
  29. deps =
  30. -r{toxinidir}/doc/requirements.txt
  31. commands =
  32. rm -rf doc/build
  33. sphinx-build -W -b html doc/source doc/build
  34. [testenv:fmt]
  35. deps =
  36. -r{toxinidir}/test-requirements.txt
  37. commands =
  38. yapf -ir {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
  39. [testenv:freeze]
  40. deps = -r{toxinidir}/requirements-direct.txt
  41. recreate = True
  42. whitelist_externals = sh
  43. grep
  44. commands=
  45. sh -c "pip freeze | grep -vE '^(promenade)|(pkg-resources)' > {toxinidir}/requirements-frozen.txt"
  46. [testenv:gate-lint]
  47. deps =
  48. jsonschema==2.6.0
  49. whitelist_externals = sh
  50. commands =
  51. {toxinidir}/tools/lint_gate.sh
  52. [testenv:pep8]
  53. deps =
  54. -r{toxinidir}/test-requirements.txt
  55. commands =
  56. yapf -rd {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
  57. flake8 {toxinidir}/promenade
  58. bandit -r promenade