summaryrefslogtreecommitdiffstats
path: root/pre-run.sh
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-20 17:19:50 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-20 17:19:50 +0100
commitf608fc186eb6fd68cf69258c000c0500838e1b26 (patch)
tree87a31a23bbee7c8f872aea784999788bb0437d5c /pre-run.sh
parente697466557b7ec370a0bd424a33b84074e41d564 (diff)
downloadtroggle-f608fc186eb6fd68cf69258c000c0500838e1b26.tar.gz
troggle-f608fc186eb6fd68cf69258c000c0500838e1b26.tar.bz2
troggle-f608fc186eb6fd68cf69258c000c0500838e1b26.zip
Fixup after rebase and pre- scripts fixed
Diffstat (limited to 'pre-run.sh')
-rw-r--r--pre-run.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/pre-run.sh b/pre-run.sh
index aeec8f5..08a5d31 100644
--- a/pre-run.sh
+++ b/pre-run.sh
@@ -1,10 +1,6 @@
#! /bin/sh
# Do these before final testing, *not* just before pushing:
# Philip Sargent 2020/06/20
-python reset-django.py
-echo After cleanup deletion, remake all migrations.
-python manage.py makemigrations >/dev/null
-python manage.py test
echo Run inspectdb:
python manage.py inspectdb > troggle-inspectdb.py
# egrep -in "unable|error" troggle-inspectdb.py
@@ -15,3 +11,9 @@ find . -name \*.html -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v "0$" | a
find . -name \*.py -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v "0$" | 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