Sphinx extension for Zuul jobs
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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = pep8
  5. [testenv]
  6. basepython = python3
  7. install_command = pip install {opts} {packages}
  8. deps = -r{toxinidir}/requirements.txt
  9. -r{toxinidir}/test-requirements.txt
  10. commands =
  11. python setup.py testr --slowest --testr-args='{posargs}'
  12. [testenv:bindep]
  13. # Do not install any requirements. We want this to be fast and work even if
  14. # system dependencies are missing, since it's used to tell you what system
  15. # dependencies are missing! This also means that bindep must be installed
  16. # separately, outside of the requirements files.
  17. deps = bindep
  18. commands = bindep test
  19. [testenv:docs]
  20. commands =
  21. sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html
  22. [testenv:pep8]
  23. whitelist_externals = bash
  24. commands =
  25. flake8 {posargs}
  26. bash -c "cd roles; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
  27. ansible-lint"
  28. [testenv:venv]
  29. commands = {posargs}
  30. [flake8]
  31. # These are ignored intentionally in openstack-infra projects;
  32. # please don't submit patches that solely correct them or enable them.
  33. ignore = E125,E129,H
  34. show-source = True
  35. exclude = .venv,.tox,dist,doc,build,*.egg