tox.ini 724 B

123456789101112131415161718192021222324252627282930313233
  1. # Tox (http://tox.testrun.org/) is a tool for running tests
  2. # in multiple virtualenvs. This configuration file will run the
  3. # test suite on all supported python versions.
  4. # To use it run "pip install tox" and then run "tox" from this
  5. # directory.
  6. [tox]
  7. envlist = py26, py27, py32, py33, py34
  8. [testenv]
  9. deps =
  10. flake8
  11. pytest
  12. py26: ipaddress
  13. py26: mock==1.0.1
  14. py26: unittest2
  15. py27: ipaddress
  16. py27: mock
  17. py32: ipaddress
  18. py32: mock
  19. py33: ipaddress
  20. setenv =
  21. PYTHONPATH = {toxinidir}/test
  22. commands =
  23. py.test {posargs}
  24. git ls-files | grep \\.py$ | xargs flake8
  25. # suppress "WARNING: 'git' command found but not installed in testenv
  26. whitelist_externals = git
  27. usedevelop = True