tox.ini 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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,py36
  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:py36]
  30. commands = coverage3 erase
  31. {envbindir}/python setup.py develop
  32. coverage3 run -p setup.py test
  33. coverage combine
  34. deps = -rrequirements.txt
  35. pymongo==2.8
  36. pymysql
  37. psycopg2
  38. pexpect
  39. coverage
  40. [testenv:docs]
  41. changedir = docs
  42. deps = -rrequirements.txt
  43. pymongo==2.8
  44. pymysql
  45. psycopg2
  46. pexpect
  47. sphinx
  48. commands =
  49. sphinx-build -b html -d {envtmpdir}/doctrees source {envtmpdir}/html