forked from https://github.com/mitmproxy/mitmproxy/ (bubble branch has our minor changes) https://github.com/mitmproxy/mitmproxy/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

69 lines
1.3 KiB

  1. [tox]
  2. envlist = py35, py36, py37, lint, individual_coverage, wheeltest, docs
  3. skipsdist = True
  4. toxworkdir={env:TOX_WORK_DIR:.tox}
  5. [testenv]
  6. deps =
  7. -rrequirements.txt
  8. setenv = HOME = {envtmpdir}
  9. commands =
  10. mitmdump --version
  11. pytest --timeout 60 --cov-report xml \
  12. --cov=mitmproxy --cov=pathod --cov=release \
  13. --full-cov=mitmproxy/ --full-cov=pathod/ \
  14. {posargs}
  15. [testenv:py35]
  16. whitelist_externals =
  17. bash
  18. deps =
  19. -rrequirements.txt
  20. commands =
  21. bash -c "mitmdump --version 2>&1 | grep 'mitmproxy requires Python 3.6'"
  22. [testenv:lint]
  23. commands =
  24. mitmdump --version
  25. flake8 --jobs 8 mitmproxy pathod examples test release
  26. python ./test/filename_matching.py
  27. rstcheck README.rst
  28. mypy .
  29. [testenv:individual_coverage]
  30. deps =
  31. -rrequirements.txt
  32. commands =
  33. python ./test/individual_coverage.py
  34. [testenv:cibuild]
  35. passenv = CI_* GITHUB_* AWS_* TWINE_* DOCKER_*
  36. deps =
  37. -rrequirements.txt
  38. pyinstaller==3.5
  39. twine==2.0.0
  40. awscli
  41. commands =
  42. mitmdump --version
  43. python ./release/cibuild.py {posargs}
  44. [testenv:wheeltest]
  45. recreate = True
  46. deps =
  47. commands =
  48. pip install {posargs}
  49. mitmproxy --version
  50. mitmdump --version
  51. mitmweb --version
  52. pathod --version
  53. pathoc --version
  54. [testenv:docs]
  55. passenv = GITHUB_* AWS_*
  56. deps =
  57. -rrequirements.txt
  58. awscli
  59. changedir = docs
  60. commands =
  61. ./ci