Commit 5637e288 authored by Noah Zoschke's avatar Noah Zoschke

detect and reject a non-packaged django app

parent d4bdf790
...@@ -19,6 +19,11 @@ function sed() { ...@@ -19,6 +19,11 @@ function sed() {
cd $BUILD_DIR 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 # copy artifacts out of cache if exists
mkdir -p $CACHE_DIR mkdir -p $CACHE_DIR
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