#!/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