tox.ini 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [tox]
  2. envlist = {pypy,py26,py27,py34,py35,py36}{,-cryptographyMaster,-cryptographyMinimum},py27-twistedMaster,pypi-readme,check-manifest,flake8,docs,coverage-report
  3. [testenv]
  4. whitelist_externals =
  5. openssl
  6. passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM
  7. extras =
  8. test
  9. deps =
  10. coverage>=4.2
  11. cryptographyMaster: git+https://github.com/pyca/cryptography.git
  12. cryptographyMinimum: cryptography==2.1.4
  13. setenv =
  14. # Do not allow the executing environment to pollute the test environment
  15. # with extra packages.
  16. PYTHONPATH=
  17. PIP_NO_BINARY=cryptography
  18. commands =
  19. openssl version
  20. coverage run --parallel -m OpenSSL.debug
  21. coverage run --parallel -m pytest -v {posargs}
  22. [testenv:py27-twistedMaster]
  23. deps =
  24. # [tls,conch] syntax doesn't work here so we enumerate all dependencies.
  25. git+https://github.com/twisted/twisted
  26. idna
  27. service_identity
  28. passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM
  29. commands =
  30. python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))"
  31. python -c "import cryptography; print(cryptography.__version__)"
  32. python -m twisted.trial --reporter=text twisted
  33. [testenv:py35-urllib3Master]
  34. basepython=python3.5
  35. deps =
  36. pyasn1
  37. ndg-httpsclient
  38. passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM
  39. whitelist_externals =
  40. rm
  41. commands =
  42. python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))"
  43. python -c "import cryptography; print(cryptography.__version__)"
  44. {toxinidir}/.travis/install_urllib3.sh
  45. pytest urllib3/test
  46. rm -rf ./urllib3
  47. [testenv:flake8]
  48. deps =
  49. flake8
  50. skip_install = true
  51. commands =
  52. flake8 src tests examples setup.py
  53. [testenv:pypi-readme]
  54. deps =
  55. readme_renderer
  56. skip_install = true
  57. commands =
  58. python setup.py check -r -s
  59. [testenv:check-manifest]
  60. deps =
  61. check-manifest
  62. skip_install = true
  63. commands =
  64. check-manifest
  65. [testenv:docs]
  66. extras =
  67. docs
  68. basepython = python2.7
  69. commands =
  70. sphinx-build -W -b html doc doc/_build/html
  71. [testenv:coverage-report]
  72. deps = coverage>=4.2
  73. skip_install = true
  74. commands =
  75. coverage combine
  76. coverage report