Files
web2.0-backend/scripts/git/pre-commit
T
2017-11-25 22:18:41 +02:00

13 lines
229 B
Plaintext
Executable File

set -e
PURPLE='\033[0;35m'
NC='\033[0m' # No Color
. "VIRTUALENV_ACTIVATE"
printf "${PURPLE}Running pre-commit tests.${NC}\n"
npm test
pycodestyle .
python manage.py test --noinput
set +e
printf "${PURPLE}Tests passed.${NC}\n"