tox.ini 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. To use it, "pip install tox"
  4. # and then run "tox" from this directory.
  5. [tox]
  6. envlist = py34,py35
  7. [testenv:py34]
  8. commands = coverage erase
  9. {envbindir}/python setup.py develop
  10. coverage run -p setup.py test
  11. coverage combine
  12. deps = -rrequirements.txt
  13. pymongo==2.8
  14. pymysql
  15. psycopg2
  16. pexpect
  17. coverage
  18. [testenv:py35]
  19. commands = coverage3 erase
  20. {envbindir}/python setup.py develop
  21. coverage3 run -p setup.py test
  22. coverage combine
  23. deps = -rrequirements.txt
  24. pymongo==2.8
  25. pymysql
  26. psycopg2
  27. pexpect
  28. coverage
  29. [testenv:docs]
  30. changedir = docs
  31. deps = -rrequirements.txt
  32. pymongo==2.8
  33. pymysql
  34. psycopg2
  35. pexpect
  36. sphinx
  37. commands =
  38. sphinx-build -b html -d {envtmpdir}/doctrees source {envtmpdir}/html