coverage.sh: install coverage if not installed
This commit is contained in:
parent
4428180c54
commit
313219b6eb
1 changed files with 5 additions and 3 deletions
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# you must install coverage before executing this script
|
|
||||||
# pip install coverage
|
|
||||||
|
|
||||||
. env/bin/activate
|
. env/bin/activate
|
||||||
|
|
||||||
|
which coverage >/dev/null 2>&1
|
||||||
|
if [ "$?" -ne 0 ]; then
|
||||||
|
pip install coverage
|
||||||
|
fi
|
||||||
|
|
||||||
coverage run manage.py test
|
coverage run manage.py test
|
||||||
coverage report
|
coverage report
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue