Don't use lsb_release under non-Linux platforms in Travis script
Avoid the error about command not being found.
This commit is contained in:
@@ -16,9 +16,15 @@ launch_httpbin() {
|
|||||||
echo 'travis_fold:start:httpbin'
|
echo 'travis_fold:start:httpbin'
|
||||||
echo 'Running 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
|
# We need to disable SSL certificate checking under Trusty because Python
|
||||||
# version there is too old to support SNI.
|
# version there is too old to support SNI.
|
||||||
case "$(lsb_release --codename --short)" in
|
case "$dist_codename" in
|
||||||
trusty)
|
trusty)
|
||||||
pip_args='--trusted-host files.pythonhosted.org'
|
pip_args='--trusted-host files.pythonhosted.org'
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user