diff options
Diffstat (limited to 'pre-run.sh')
-rwxr-xr-x[-rw-r--r--] | pre-run.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pre-run.sh b/pre-run.sh index d00d548..c930b21 100644..100755 --- a/pre-run.sh +++ b/pre-run.sh @@ -2,7 +2,7 @@ # Do these before final testing, *not* just before pushing: # Philip Sargent 2020/06/20 echo Run inspectdb: -python manage.py inspectdb > troggle-inspectdb.py +python3 manage.py inspectdb > troggle-inspectdb.py # egrep -in "unable|error" troggle-inspectdb.py echo "" # count non-blank lines of python and template HTML code @@ -13,11 +13,11 @@ find . -name \*.py -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v ":0$" | gr # This deletes the database so must run after generating troggle-inspectdb.py -python reset-django.py +python3 reset-django.py echo After cleanup deletion, remake all migrations. -python manage.py makemigrations >/dev/null -python manage.py test -python manage.py check -v 3 --deploy 2>security-warnings.txt >/dev/null -python manage.py check -v 3 --deploy +python3 manage.py makemigrations >/dev/null +python3 manage.py test +python3 manage.py check -v 3 --deploy 2>security-warnings.txt >/dev/null +python3 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 +echo `tail -1 lines-of-python.txt` non-comment lines of python. |