ara-server/scripts/test.sh
Guillaume Vincent a889a71bcd
💥 first commit
Change-Id: I42df36220dce581a929c604a13bba0ccb3d580e6
2018-03-29 12:36:14 -04:00

17 lines
315 B
Bash
Executable File

#!/usr/bin/env bash
RED='\033[0;31m'
NOCOLOR='\033[0m'
if [ ! -f requirements.txt ]; then
echo -e "${RED}You seems to be in the wrong directory"
echo -e "Execute this script from the root of ara with ./scripts/${0##*/}${NOCOLOR}"
exit 1
fi
source venv/bin/activate
python manage.py test
deactivate