diff options
author | Philip Sargent (oconee) <philip.sargent@gmail.com> | 2022-10-27 16:29:11 +0100 |
---|---|---|
committer | Philip Sargent (oconee) <philip.sargent@gmail.com> | 2022-10-27 16:29:11 +0100 |
commit | 73e57a19df7f776d8dfe89a87576d9597810b1fe (patch) | |
tree | 4f5099455e988f3751024c4c31e6094c6f3b76be /pre-run.sh | |
parent | 275ce87e30a805ecccc97efd3dd2b90a867b1bbb (diff) | |
download | troggle-73e57a19df7f776d8dfe89a87576d9597810b1fe.tar.gz troggle-73e57a19df7f776d8dfe89a87576d9597810b1fe.tar.bz2 troggle-73e57a19df7f776d8dfe89a87576d9597810b1fe.zip |
fixes for WSL1 on new machine
Diffstat (limited to 'pre-run.sh')
-rwxr-xr-x | pre-run.sh | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ #! /bin/sh # Do these before final testing, *not* just before pushing: # Philip Sargent 2020/06/20 -echo Run inspectdb: +echo "** Run inspectdb:" python3 manage.py inspectdb > troggle-inspectdb.py # egrep -in "unable|error" troggle-inspectdb.py echo "" @@ -14,14 +14,19 @@ 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 python3 reset-django.py -echo After cleanup deletion, remake all migrations. +echo "** After cleanup deletion, remake all migrations." python3 manage.py makemigrations >/dev/null python3 manage.py migrate -python3 manage.py test + +echo "** Now running self check" python3 manage.py check -v 3 --deploy 2>security-warnings.txt >/dev/null python3 manage.py check -v 3 --deploy + +echo "** Now running test suite" +python3 manage.py test + echo "" echo `tail -1 lines-of-python.txt` non-comment lines of python. echo `tail -1 lines-of-templates.txt` non-comment lines of HTML templates. -echo 'If you have an error running manage.py, maybe you are not in an activated venv ?'
\ No newline at end of file +echo '** If you have an error running manage.py, maybe you are not in an activated venv ?'
\ No newline at end of file |