Commit d4bdf790 authored by Noah Zoschke's avatar Noah Zoschke

assert that psycopg2 was installed for Django app

parent bf0400c8
...@@ -59,6 +59,10 @@ echo "-----> Installing dependencies using pip version $(bin/pip --version | awk ...@@ -59,6 +59,10 @@ echo "-----> Installing dependencies using pip version $(bin/pip --version | awk
PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install -r requirements.txt | sed -u 's/^/ /' PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install -r requirements.txt | sed -u 's/^/ /'
if [ "$NAME" = "Python/Django" ]; then
bin/pip freeze | grep psycopg2 > /dev/null || { echo " ! Missing psycopg2 dependency in requirements.txt"; exit 1; }
fi
# store new artifacts in cache # store new artifacts in cache
for dir in $VIRTUALENV_DIRS; do for dir in $VIRTUALENV_DIRS; do
rm -rf $CACHE_DIR/$dir rm -rf $CACHE_DIR/$dir
......
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