Commit f8951059 authored by Noah Zoschke's avatar Noah Zoschke

only display virtualenv relocatable output on error

parent d3deb6c6
...@@ -72,8 +72,12 @@ fi ...@@ -72,8 +72,12 @@ fi
echo "-----> Installing dependencies using pip version $(bin/pip --version | awk '{print $2}')" echo "-----> Installing dependencies using pip version $(bin/pip --version | awk '{print $2}')"
PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install --use-mirrors -r requirements.txt | sed -u 's/^/ /' PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install --use-mirrors -r requirements.txt | sed -u 's/^/ /'
echo "-----> Making virtualenv relocatable" OUT=$(virtualenv --relocatable .)
virtualenv --relocatable . | sed -u 's/^/ /' [ $? -ne 0 ] && {
echo " ! Error making virtualenv relocatable"
echo "$OUT" | sed -u 's/^/ /'
exit 1
}
# store new artifacts in cache # store new artifacts in cache
for dir in $VIRTUALENV_DIRS; do for dir in $VIRTUALENV_DIRS; do
......
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