Files
web2.0-backend/scripts/git/pre-commit
T
2017-11-25 21:56:07 +02:00

10 lines
190 B
Plaintext
Executable File

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