2009-12-05 03:08:59 +03:00
|
|
|
from fabric.api import local
|
|
|
|
|
2010-01-26 23:57:26 +03:00
|
|
|
|
|
|
|
def pylint():
|
2010-01-27 01:44:12 +03:00
|
|
|
local("cd ..;export DJANGO_SETTINGS_MODULE=zamboni/settings_local;"
|
|
|
|
"export PYTHONPATH=zamboni/apps:zamboni/lib;"
|
2010-01-26 23:57:26 +03:00
|
|
|
"pylint --rcfile zamboni/scripts/pylintrc -fparseable zamboni",
|
|
|
|
capture=False)
|
|
|
|
|
2009-12-03 01:07:36 +03:00
|
|
|
def pep8():
|
2009-12-14 23:34:11 +03:00
|
|
|
local("pep8 --repeat --ignore E221"
|
|
|
|
" --exclude *.sh,*.html,*.json,*.txt,*.pyc,.DS_Store,README,"
|
2010-01-23 03:54:08 +03:00
|
|
|
"migrations,sphinxapi.py"
|
2009-12-14 23:34:11 +03:00
|
|
|
" apps", capture=False)
|
2010-01-19 23:58:45 +03:00
|
|
|
|
|
|
|
|
|
|
|
def test():
|
2010-01-26 22:02:28 +03:00
|
|
|
local("python manage.py test --noinput --logging-clear-handlers",
|
|
|
|
capture=False)
|