tox.ini 705 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [tox]
  2. envlist =
  3. flake8,
  4. py27,
  5. py34,
  6. py35,
  7. py36,
  8. py37,
  9. pypy,
  10. pypy3,
  11. coverage-report,
  12. skip_missing_interpreters = False
  13. [testenv]
  14. usedevelop = True
  15. commands =
  16. coverage run ./setup.py test {posargs}
  17. setenv =
  18. COVERAGE_FILE=.coverage.{envname}
  19. deps =
  20. pytest
  21. pytest-cov
  22. pytest-remove-stale-bytecode
  23. [testenv:coverage-report]
  24. basepython = python2.7
  25. deps = coverage
  26. setenv =
  27. COVERAGE_FILE=.coverage
  28. skip_install = true
  29. commands =
  30. coverage erase
  31. coverage combine
  32. coverage html
  33. coverage report --fail-under=100 --show-missing --skip-covered
  34. [testenv:flake8]
  35. basepython = python2.7
  36. deps = flake8
  37. commands = flake8 --doctests icemac setup.py