diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-06-20 17:19:50 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-06-20 17:19:50 +0100 |
commit | f608fc186eb6fd68cf69258c000c0500838e1b26 (patch) | |
tree | 87a31a23bbee7c8f872aea784999788bb0437d5c /pre-run.sh | |
parent | e697466557b7ec370a0bd424a33b84074e41d564 (diff) | |
download | troggle-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.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |