tox.ini 861 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 {toxinidir}/flaskbb
  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. max-line-length = 80
  34. exclude = flaskbb/configs/default.py,flaskbb/_compat.py
  35. [pytest]
  36. addopts = -vvl --strict --flake8 --capture fd