Add a script to run unit tests in a virtualenv
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
local_settings.py
|
||||
*.pyc
|
||||
*.swp
|
||||
virtualenv
|
||||
|
7
run-unit-tests.sh
Executable file
7
run-unit-tests.sh
Executable 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 $@
|
Reference in New Issue
Block a user