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