Skip to content

Commit be548bf

Browse files
committed
Fix coverage
1 parent 8564890 commit be548bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ matrix:
126126
- COMPILER=g++-6
127127
- CXXFLAGS="-O0 --coverage"
128128
before_script:
129-
- pip install --user cpp-coveralls
129+
- pip install --user urllib3[secure] cpp-coveralls
130+
# Work around https://github.com/eddyxu/cpp-coveralls/issues/108 by manually
131+
# installing the pyOpenSSL module and injecting it into urllib3 as per
132+
# https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
133+
- sed -i -e '/^import sys$/a import urllib3.contrib.pyopenssl\nurllib3.contrib.pyopenssl.inject_into_urllib3()' $(which coveralls)
130134
after_success:
131135
- coveralls --gcov gcov-6 --gcov-options '\-lp' --exclude src
132136

0 commit comments

Comments
 (0)