Add a script to run unit tests in a virtualenv

This commit is contained in:
Trever Fischer
2012-06-08 16:59:30 -04:00
parent 982b7b1ba5
commit 71ca32205b
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
local_settings.py
*.pyc
*.swp
virtualenv

7
run-unit-tests.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
if [ ! -f virtualenv/bin/activate ];then
virtualenv --no-site-packages virtualenv/
fi
source virtualenv/bin/activate
pip install -r pip-requirements
exec ./manage.py test $@