Files
web2.0-backend/test_applet.sh
T
2017-01-17 20:54:00 +02:00

23 lines
447 B
Bash
Executable File

#!/bin/sh
activate () {
. ../virtualenv.sikweb/bin/activate
}
clear
echo "This is a script that does the following things:"
echo "* activate virtualenv"
echo "* run Django migrations"
echo "* run unit tests"
echo "* start Django devserver"
echo "* deactivate virtualenv"
activate
python manage.py makemigrations --merge
python manage.py makemigrations
python manage.py migrate
python manage.py test
python manage.py runserver
deactivate