blob: e69abd86b7edafbda0c68bc7975db2caaa53ecf2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
SUPERUSER_NAME=mlemon
SUPERUSER_PASSWD=lemonlemon
SUPERUSER_EMAIL=bob@bob.com
DATABASE_NAME=ctrack
DATABASE_USER=postres
test:
pytest --tb=short -v
test-fast:
pytest -k "not test_functional" --tb=short
initialisedb: populate
python manage.py createsuperuser
populate: migrate
@echo "Populating new database with test data."
python manage.py populate_db
migrate: createdb
@echo "Migrating."
python manage.py migrate
createdb: dropdb
@echo "Creating a new database."
createdb $(DATABASE_NAME) -O postgres
dropdb:
@echo "Dropping any existing ctrack database."
psql -U postgres -c "DROP DATABASE IF EXISTS $(DATABASE_NAME);"
|