diff options
author | Hynek Schlawack <hs@ox.cx> | 2016-03-16 11:20:06 +0100 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2016-03-16 11:20:06 +0100 |
commit | aa2e6de9c52ce1f43f60b869198226537c90bb18 (patch) | |
tree | a2cd8bc0fbcde2467eaefd0f5161c647a2c5a75a | |
parent | 581c4dac26b98e189d2a238cd64bb885c3549d6b (diff) | |
parent | 997630bbfa18cbcb564a9d647c555e97c11916f4 (diff) | |
download | pyopenssl-aa2e6de9c52ce1f43f60b869198226537c90bb18.tar.gz |
Merge pull request #446 from Lukasa/test-urllib3
Add smoke tests for urllib3.
-rw-r--r-- | .travis.yml | 4 | ||||
-rwxr-xr-x | .travis/install_urllib3.sh | 8 | ||||
-rw-r--r-- | tox.ini | 15 |
3 files changed, 26 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 06b5b70..7afcce2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -60,9 +60,11 @@ matrix: env: TOXENV=pypy-cryptography1.1 - # Make sure we don't break Twisted + # Make sure we don't break Twisted or urllib3 - python: "2.7" env: TOXENV=py27-twistedMaster + - python: "3.5" + env: TOXENV=py35-urllib3Master # Also run at least a little bit against an older version of OpenSSL. diff --git a/.travis/install_urllib3.sh b/.travis/install_urllib3.sh new file mode 100755 index 0000000..1324ded --- /dev/null +++ b/.travis/install_urllib3.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e +set -x + +git clone --depth 1 https://github.com/shazow/urllib3.git +pip install -r ./urllib3/dev-requirements.txt +pip install ./urllib3[socks] @@ -31,6 +31,21 @@ commands = python -c "import cryptography; print(cryptography.__version__)" trial twisted +[testenv:py35-urllib3Master] +basepython=python3.5 +deps = + pyasn1 + ndg-httpsclient +passenv = ARCHFLAGS CFLAGS LC_ALL LDFLAGS PATH LD_LIBRARY_PATH TERM +whitelist_externals = + rm +commands = + python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))" + python -c "import cryptography; print(cryptography.__version__)" + {toxinidir}/.travis/install_urllib3.sh + nosetests urllib3/test + rm -rf ./urllib3 + [testenv:flake8] deps = flake8 |