Unverified Commit 7d67726f authored by xoviat's avatar xoviat Committed by GitHub
Browse files

Fix OSX failures (#85)

Fix "cd" overridden by RVM.
Don't try to uninstall virtualenv if pip is not installed.
parent b08452d7
...@@ -18,6 +18,11 @@ if [ $(uname) == "Darwin" ]; then IS_OSX=1; fi ...@@ -18,6 +18,11 @@ if [ $(uname) == "Darwin" ]; then IS_OSX=1; fi
# https://github.com/direnv/direnv/issues/210 # https://github.com/direnv/direnv/issues/210
shell_session_update() { :; } shell_session_update() { :; }
# Workaround for https://github.com/travis-ci/travis-ci/issues/8703
# suggested by Thomas K at
# https://github.com/travis-ci/travis-ci/issues/8703#issuecomment-347881274
unset -f cd
function start_spinner { function start_spinner {
if [ -n "$MB_SPINNER_PID" ]; then if [ -n "$MB_SPINNER_PID" ]; then
return return
......
...@@ -252,7 +252,8 @@ function make_workon_venv { ...@@ -252,7 +252,8 @@ function make_workon_venv {
function remove_travis_ve_pip { function remove_travis_ve_pip {
# Remove travis installs of virtualenv and pip # Remove travis installs of virtualenv and pip
if [ "$(sudo which virtualenv)" == /usr/local/bin/virtualenv ]; then # FIXME: What if virtualenv is installed but pip is not?
if [ "$(sudo which virtualenv)" == /usr/local/bin/virtualenv ] && [ "$(sudo which pip)" == /usr/local/bin/pip ]; then
sudo pip uninstall -y virtualenv; sudo pip uninstall -y virtualenv;
fi fi
if [ "$(sudo which pip)" == /usr/local/bin/pip ]; then if [ "$(sudo which pip)" == /usr/local/bin/pip ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment