Run tests in a docker container
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 668B

123456789101112131415161718192021222324252627282930313233
  1. [tox]
  2. minversion = 1.6
  3. envlist = py27,py33,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -U {opts} {packages}
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. LANG=en_US.UTF-8
  11. LANGUAGE=en_US:en
  12. LC_ALL=C
  13. deps = -r{toxinidir}/requirements.txt
  14. -r{toxinidir}/test-requirements.txt
  15. commands = python setup.py testr --slowest --testr-args='{posargs}'
  16. [testenv:pep8]
  17. commands = flake8
  18. [testenv:venv]
  19. commands = {posargs}
  20. [testenv:cover]
  21. commands = python setup.py testr --coverage --testr-args='{posargs}'
  22. [flake8]
  23. show-source = True
  24. builtins = _
  25. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  26. [docker]
  27. images = infra/trusty