summaryrefslogtreecommitdiffstats
path: root/pre-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pre-run.sh')
-rw-r--r--pre-run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/pre-run.sh b/pre-run.sh
index d938304..d00d548 100644
--- a/pre-run.sh
+++ b/pre-run.sh
@@ -10,10 +10,14 @@ echo ""
find . -name \*.html -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v ":0$" | awk -F ":" '{ sum +=$2; print $2, $1; } END {print sum}'| sort -n > lines-of-templates.txt
find . -name \*.py -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v ":0$" | grep -v "/migrations/" |grep -v "troggle-inspectdb.py"| awk -F ":" '{ sum +=$2; print $2, $1; } END {print sum}'| sort -n > lines-of-python.txt
-echo `tail -1 lines-of-python.txt` non-comment lines of python.
+
# This deletes the database so must run after generating troggle-inspectdb.py
python reset-django.py
echo After cleanup deletion, remake all migrations.
python manage.py makemigrations >/dev/null
-python manage.py test \ No newline at end of file
+python manage.py test
+python manage.py check -v 3 --deploy 2>security-warnings.txt >/dev/null
+python manage.py check -v 3 --deploy
+echo ""
+echo `tail -1 lines-of-python.txt` non-comment lines of python. \ No newline at end of file