Merge branch 'fix-httpbin-travis'
Fix Travis CI failures due to httpbin dependency update. Closes https://github.com/wxWidgets/wxWidgets/pull/2301
This commit is contained in:
commit
78b272c1df
@ -16,15 +16,23 @@ launch_httpbin() {
|
||||
echo 'travis_fold:start:httpbin'
|
||||
echo 'Running httpbin...'
|
||||
|
||||
case "$(uname -s)" in
|
||||
Linux)
|
||||
dist_codename=$(lsb_release --codename --short)
|
||||
;;
|
||||
esac
|
||||
|
||||
# We need to disable SSL certificate checking under Trusty because Python
|
||||
# version there is too old to support SNI.
|
||||
case "$(lsb_release --codename --short)" in
|
||||
case "$dist_codename" in
|
||||
trusty)
|
||||
pip_args='--trusted-host files.pythonhosted.org'
|
||||
;;
|
||||
esac
|
||||
|
||||
pip install httpbin --user $pip_args
|
||||
# decorator 5+ is incompatible with Python 2 which we still use under in
|
||||
# some builds, so explicitly select version 4.4 which is known to work.
|
||||
pip install decorator==4.4.2 httpbin --user $pip_args
|
||||
python -m httpbin.core &
|
||||
WX_TEST_WEBREQUEST_URL="http://localhost:5000"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user