tox.ini 762 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [tox]
  2. envlist = py27,py34,pre-commit
  3. [testenv]
  4. usedevelop=True
  5. passenv =
  6. LD_LIBRARY_PATH
  7. DOCKER_HOST
  8. DOCKER_CERT_PATH
  9. DOCKER_TLS_VERIFY
  10. setenv =
  11. HOME=/tmp
  12. deps =
  13. -rrequirements.txt
  14. -rrequirements-dev.txt
  15. commands =
  16. py.test -v -rxs \
  17. --cov=compose \
  18. --cov-report html \
  19. --cov-report term \
  20. --cov-config=tox.ini \
  21. {posargs:tests}
  22. [testenv:pre-commit]
  23. skip_install = True
  24. deps =
  25. pre-commit
  26. commands =
  27. pre-commit install
  28. pre-commit run --all-files
  29. # Coverage configuration
  30. [run]
  31. branch = True
  32. [report]
  33. show_missing = true
  34. [html]
  35. directory = coverage-html
  36. # end coverage configuration
  37. [flake8]
  38. # Allow really long lines for now
  39. max-line-length = 140
  40. exclude = compose/packages