tox.ini 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. --cov=compose \
  21. --cov-report html \
  22. --cov-report term \
  23. --cov-config=tox.ini \
  24. {posargs:tests}
  25. [testenv:pre-commit]
  26. skip_install = True
  27. deps =
  28. pre-commit
  29. commands =
  30. pre-commit install
  31. pre-commit run --all-files
  32. # Coverage configuration
  33. [run]
  34. branch = True
  35. [report]
  36. show_missing = true
  37. [html]
  38. directory = coverage-html
  39. # end coverage configuration
  40. [flake8]
  41. max-line-length = 105
  42. # Set this high for now
  43. max-complexity = 11
  44. exclude = compose/packages
  45. [pytest]
  46. addopts = --tb=short -rxs