forked from proj5/se2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.bat
31 lines (25 loc) · 827 Bytes
/
init.bat
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
@echo off
:: !Clear old database
del db.sqlite3
:: !Create new database
python manage.py migrate
:: Install fixture
:: username:password
:: admin:admin
:: user:user
python manage.py loaddata auth.json
python manage.py loaddata users.json
python manage.py loaddata grades.json
python manage.py loaddata skills.json
python manage.py loaddata exercises.json
python manage.py loaddata exams.json
python manage.py loaddata records.json
python manage.py loaddata possible_answer.json
:: Force check pep8 when commit
set filename=.git/hooks/pre-commit
echo #!/bin/bash >%filename%
echo set -e >>%filename%
echo echo '---------------------------------' >>%filename%
echo pep8 --exclude=*/migrations/,se2015/wsgi.py . >>%filename%
echo echo '---------------------------------' >>%filename%
echo python manage.py test >>%filename%