tox.ini 965 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [tox]
  2. envlist = py27,py37,pre-commit
  3. [testenv]
  4. usedevelop=True
  5. whitelist_externals=mkdir
  6. passenv =
  7. LD_LIBRARY_PATH
  8. DOCKER_HOST
  9. DOCKER_CERT_PATH
  10. DOCKER_TLS_VERIFY
  11. DOCKER_VERSION
  12. SWARM_SKIP_*
  13. SWARM_ASSUME_MULTINODE
  14. setenv =
  15. HOME=/tmp
  16. deps =
  17. -rrequirements.txt
  18. -rrequirements-dev.txt
  19. commands =
  20. mkdir -p .coverage-binfiles
  21. py.test -v \
  22. --cov=compose \
  23. --cov-report html \
  24. --cov-report term \
  25. --cov-config=tox.ini \
  26. {posargs:tests}
  27. [testenv:pre-commit]
  28. skip_install = True
  29. deps =
  30. pre-commit
  31. commands =
  32. pre-commit install
  33. pre-commit run --all-files
  34. # Coverage configuration
  35. [run]
  36. branch = True
  37. data_file = .coverage-binfiles/.coverage
  38. [report]
  39. show_missing = true
  40. [html]
  41. directory = coverage-html
  42. # end coverage configuration
  43. [flake8]
  44. max-line-length = 105
  45. # Set this high for now
  46. max-complexity = 11
  47. exclude = compose/packages
  48. [pytest]
  49. addopts = --tb=short -rxs