Congress
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.

63 lines
1.7 KiB

  1. [tox]
  2. minversion = 1.6
  3. skipsdist = True
  4. envlist = py35,py34,py27,pep8
  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} -U {opts} {packages}
  8. whitelist_externals = find
  9. setenv =
  10. VIRTUAL_ENV={envdir}
  11. LANG=en_US.UTF-8
  12. LANGUAGE=en_US
  13. LC_ALL=en_US.utf-8
  14. deps = -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. commands =
  17. find . -type f -name "*.py[c|o]" -delete
  18. python setup.py testr --slowest --testr-args='{posargs}'
  19. [testenv:pep8]
  20. usedevelop = False
  21. deps =
  22. commands = {toxinidir}/tools/pip-install-single-req.sh test-requirements.txt hacking
  23. flake8
  24. [testenv:venv]
  25. commands = {posargs}
  26. [testenv:cover]
  27. commands = python setup.py testr --coverage --testr-args='{posargs}'
  28. [testenv:debug]
  29. commands = oslo_debug_helper -t congress/tests {posargs}
  30. [testenv:bench]
  31. setenv =
  32. TEST_BENCHMARK=true
  33. VIRTUAL_ENV={envdir}
  34. LANG=en_US.UTF-8
  35. LANGUAGE=en_US
  36. LC_ALL=en_US.utf-8
  37. commands = python setup.py testr --testr-args='test_benchmark {posargs} --concurrency=1'
  38. testr slowest --all
  39. [flake8]
  40. show-source = True
  41. builtins = _
  42. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*thirdparty/*,CongressLexer.py,CongressParser.py,contrib/*
  43. [testenv:genconfig]
  44. deps =
  45. commands = {toxinidir}/tools/pip-install-single-req.sh requirements.txt oslo.config
  46. oslo-config-generator --config-file=etc/congress-config-generator.conf
  47. [testenv:docs]
  48. setenv = PYTHONHASHSEED=0
  49. commands = python setup.py build_sphinx
  50. [testenv:releasenotes]
  51. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html