forked from expo/troggle
generated files should be in gitignore
This commit is contained in:
14
pre-run.sh
Normal file → Executable file
14
pre-run.sh
Normal file → Executable 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.
|
||||
|
||||
Reference in New Issue
Block a user