tox.ini 903 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [tox]
  2. envlist =
  3. py27,py27-pure,py34,py34-pure,py35,py36,pypy,pypy3,coverage,docs
  4. [testenv]
  5. commands =
  6. coverage run setup.py -q test -q {posargs}
  7. deps =
  8. .[test]
  9. coverage
  10. setenv =
  11. COVERAGE_FILE=.coverage.{envname}
  12. [testenv:py27-pure]
  13. setenv =
  14. PURE_PYTHON=1
  15. PIP_CACHE_DIR = {envdir}/.cache
  16. [testenv:py34-pure]
  17. setenv =
  18. PURE_PYTHON=1
  19. PIP_CACHE_DIR = {envdir}/.cache
  20. [testenv:py]
  21. commands =
  22. python --version
  23. {[testenv]commands}
  24. [testenv:coverage]
  25. setenv =
  26. COVERAGE_FILE=.coverage
  27. skip_install = true
  28. commands =
  29. coverage erase
  30. coverage combine
  31. coverage report
  32. coverage html
  33. coverage xml
  34. [testenv:docs]
  35. basepython =
  36. python2.7
  37. commands =
  38. sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
  39. sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
  40. deps =
  41. Sphinx
  42. repoze.sphinx.autointerface