Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Fix: Travis builds
Browse files Browse the repository at this point in the history
Tries to create a virtual env if possible, otherwise calls pip directly
  • Loading branch information
fjcaetano committed Dec 10, 2018
1 parent 47ce886 commit e81ef11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ install_wstest() {
echo 'Creating virtual env'
exe virtualenv "$(pwd)/venv"
else
echo ' -> Virtual env not installed. Attempting to install anyway'
echo ' -> virtualenv not installed.'
fi
fi

exe source venv/bin/activate
if [ -f venv/bin/activate ]; then
exe source venv/bin/activate
else
echo ' -> Virtual env not found. Attempting to install anyway'
fi

if [[ ! $(which pip) ]]; then
echo 'Installing pip'
Expand Down

0 comments on commit e81ef11

Please sign in to comment.