Tool for creating custom gerrit dashboard urls to make prioritizing reviews easier. Includes many example dashboards for OpenStack projects.
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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [tox]
  2. minversion = 1.6
  3. envlist = py35,py27,pypy,pep8,checksyntax,dashboards
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -U {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. deps = -r{toxinidir}/requirements.txt
  11. -r{toxinidir}/test-requirements.txt
  12. whitelist_externals = bash
  13. [testenv:pep8]
  14. basepython = python3
  15. commands = flake8
  16. [testenv:venv]
  17. basepython = python3
  18. commands = {posargs}
  19. [testenv:checksyntax]
  20. basepython = python3
  21. commands = python gerrit_dash_creator/cmd/creator.py --check-only dashboards
  22. [testenv:cover]
  23. basepython = python3
  24. commands = python setup.py testr --coverage --testr-args='{posargs}'
  25. [testenv:docs]
  26. basepython = python3
  27. commands =
  28. # not happy with generated dashboard pages
  29. # doc8 -e .rst doc CONTRIBUTING.rst HACKING.rst README.rst
  30. python setup.py build_sphinx
  31. [flake8]
  32. # H803 skipped on purpose per list discussion.
  33. # E123, E125 skipped as they are invalid PEP-8.
  34. show-source = True
  35. ignore = E123,E125,H803
  36. builtins = _
  37. exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
  38. [testenv:dashboards]
  39. basepython = python3
  40. commands =
  41. bash -c "tools/generate_dashboards.sh"
  42. sphinx-build doc/source/ build/
  43. [testenv:bindep]
  44. basepython = python3
  45. # Do not install any requirements. We want this to be fast and work even if
  46. # system dependencies are missing, since it's used to tell you what system
  47. # dependencies are missing! This also means that bindep must be installed
  48. # separately, outside of the requirements files.
  49. deps = bindep
  50. commands = bindep test