tox.ini 764 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [tox]
  2. envlist = py27,py34,py35,py36,cov-report,cov-store
  3. [testenv]
  4. use_develop = true
  5. deps =
  6. py27: mock==2.0.0
  7. -r{toxinidir}/requirements-test.txt
  8. setenv =
  9. COVERAGE_FILE = tests/.coverage.{envname}
  10. PYTHONDONTWRITEBYTECODE=1
  11. commands =
  12. coverage run -m pytest {toxinidir}/tests
  13. [testenv:cov-report]
  14. skip_install = true
  15. setenv =
  16. COVERAGE_FILE = tests/.coverage
  17. deps =
  18. -r{toxinidir}/requirements-cov.txt
  19. commands =
  20. coverage combine tests
  21. coverage report
  22. [testenv:cov-store]
  23. skip_install = true
  24. setenv =
  25. COVERAGE_FILE = tests/.coverage
  26. deps =
  27. -r{toxinidir}/requirements-cov.txt
  28. commands =
  29. coverage html
  30. [flake8]
  31. ignore = E712, E711, C901
  32. max-complexity = 10
  33. [pytest]
  34. addopts = -vvl --strict --flake8 --capture fd