Global Server Load-Balancing
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. envlist = py35,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. deps = -r{toxinidir}/test-requirements.txt
  11. commands = python setup.py test --slowest --testr-args='{posargs}'
  12. whitelist_externals = sh
  13. [testenv:pep8]
  14. commands = sh tools/pretty_flake8.sh
  15. [testenv:venv]
  16. commands = {posargs}
  17. [testenv:cover]
  18. commands = python setup.py test --coverage --testr-args='{posargs}'
  19. coverage report
  20. [testenv:docs]
  21. commands = python setup.py build_sphinx
  22. [testenv:debug]
  23. commands = oslo_debug_helper -t kosmos/tests {posargs}
  24. [testenv:releasenotes]
  25. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  26. [hacking]
  27. import_exceptions = kosmos._i18n
  28. [flake8]
  29. show-source = True
  30. ignore = H302,H306,H402,H404,H405,H904
  31. builtins = _
  32. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools