pyrosrun.sh 422 Bytes
#!/bin/bash

NEEDED_ARGUMENT="One argument is needed. Possible arguments : [runserver|test]"
INVALID_ARGUMENT="Invalid argument. Possible arguments : [runserver|test]"

source private/venv_py3_pyros/bin/activate

if [ $# -ne 1 ]; then
   echo $NEEDED_ARGUMENT
   exit
fi

cd src/

case "$1" in
     "server")
	python manage.py runserver
	;;
     "test")
	python manage.py test
	;;
     *)
	echo $INVALID_ARGUMENT
	;;
esac