tox.ini 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [tox]
  2. envlist =
  3. py{37,36,35,34,27,py3,py3,py}
  4. stylecheck
  5. docs-html
  6. coverage-report
  7. skip_missing_interpreters = true
  8. [testenv]
  9. setenv =
  10. COVERAGE_FILE = .coverage.{envname}
  11. deps =
  12. pytest-cov
  13. commands = pytest --tb=short --cov --cov-report= {posargs}
  14. [testenv:stylecheck]
  15. deps = pre-commit
  16. skip_install = true
  17. commands = pre-commit run --all-files --show-diff-on-failure
  18. [testenv:docs-html]
  19. deps = -r docs/requirements.txt
  20. commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
  21. [testenv:coverage-report]
  22. setenv =
  23. COVERAGE_FILE = .coverage
  24. deps = coverage
  25. skip_install = true
  26. commands =
  27. coverage combine
  28. coverage html
  29. coverage report
  30. [testenv:codecov]
  31. passenv = CI TRAVIS TRAVIS_*
  32. setenv =
  33. COVERAGE_FILE = .coverage
  34. deps = codecov
  35. skip_install = true
  36. commands =
  37. coverage combine
  38. codecov
  39. coverage report