coverage.sh: install coverage if not installed

This commit is contained in:
Élie Bouttier 2014-08-22 17:03:41 -07:00
parent 4428180c54
commit 313219b6eb

View file

@ -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