Update setup.sh

This commit is contained in:
Jan Tuomi
2017-11-25 22:18:41 +02:00
parent 2b2d635cb0
commit 9ee4d600a7
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -2,8 +2,11 @@ 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
+1
View File
@@ -58,6 +58,7 @@ echo ""
if [[ $REPLY =~ ^[Yy]$ ]]
then
cp "$PWD/scripts/git/pre-commit" "$PWD/.git/hooks/pre-commit"
sed -i "s|VIRTUALENV_ACTIVATE|$(which activate)|g" "$PWD/.git/hooks/pre-commit"
fi