2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 10:26:17 +00:00

Fixup after rebase and pre- scripts fixed

This commit is contained in:
Philip Sargent
2020-06-20 17:19:50 +01:00
parent e697466557
commit f608fc186e
9 changed files with 170 additions and 144 deletions

View File

@@ -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