generated files should be in gitignore

This commit is contained in:
Expo on server
2020-07-20 23:51:15 +01:00
parent 1bc82dea15
commit f7db908cb2
6 changed files with 158 additions and 124 deletions

14
pre-run.sh Normal file → Executable file
View File

@@ -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.
echo `tail -1 lines-of-python.txt` non-comment lines of python.