tox.ini 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. DOCKER_VERSION
  11. SWARM_SKIP_*
  12. SWARM_ASSUME_MULTINODE
  13. setenv =
  14. HOME=/tmp
  15. deps =
  16. -rrequirements.txt
  17. -rrequirements-dev.txt
  18. commands =
  19. py.test -v \
  20. --full-trace \
  21. --cov=compose \
  22. --cov-report html \
  23. --cov-report term \
  24. --cov-config=tox.ini \
  25. {posargs:tests}
  26. [testenv:pre-commit]
  27. skip_install = True
  28. deps =
  29. pre-commit
  30. commands =
  31. pre-commit install
  32. pre-commit run --all-files
  33. # Coverage configuration
  34. [run]
  35. branch = True
  36. [report]
  37. show_missing = true
  38. [html]
  39. directory = coverage-html
  40. # end coverage configuration
  41. [flake8]
  42. max-line-length = 105
  43. # Set this high for now
  44. max-complexity = 11
  45. exclude = compose/packages
  46. [pytest]
  47. addopts = --tb=short -rxs