tox.ini 858 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,py27,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. whitelist_externals = rm
  8. install_command = pip install {opts} {packages}
  9. setenv =
  10. VIRTUAL_ENV={envdir}
  11. BRANCH_NAME=master
  12. CLIENT_NAME=coriolis-core
  13. DEFAULT_REPO=git@bitbucket.org:cloudbase
  14. PYTHONWARNINGS=default::DeprecationWarning
  15. deps = -r{toxinidir}/requirements.txt
  16. -r{toxinidir}/test-requirements.txt
  17. commands =
  18. python setup.py test --slowest --testr-args='{posargs}'
  19. rm -f .testrepository/times.dbm
  20. [testenv:pep8]
  21. commands = flake8 {posargs}
  22. [testenv:venv]
  23. commands = {posargs}
  24. [testenv:cover]
  25. commands = python setup.py test --coverage --testr-args='{posargs}'
  26. [flake8]
  27. # E123, E125 skipped as they are invalid PEP-8.
  28. show-source = True
  29. ignore = E123,E125
  30. builtins = _
  31. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build