detect and reject a non-packaged django app

This commit is contained in:
Noah Zoschke
2011-08-27 13:22:24 -07:00
parent d4bdf7908b
commit 5637e28894
+5
View File
@@ -19,6 +19,11 @@ function sed() {
cd $BUILD_DIR
# reject a non-packaged Django app
if [ "$NAME" = "Python" ]; then
[ -f manage.py ] && [ -f settings.py ] && { echo " ! Django app be in a package subdirectory"; exit 1; }
fi
# copy artifacts out of cache if exists
mkdir -p $CACHE_DIR
for dir in $VIRTUALENV_DIRS; do