forked from ccnmtl/dmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (45 loc) · 1.01 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MANAGE=./manage.py
APP=dmt
FLAKE8=./ve/bin/flake8
jenkins: ./ve/bin/python validate test flake8
./ve/bin/python: requirements.txt bootstrap.py virtualenv.py
./bootstrap.py
test: ./ve/bin/python
$(MANAGE) jenkins
flake8: ./ve/bin/python
$(FLAKE8) $(APP) --max-complexity=7
runserver: ./ve/bin/python validate
$(MANAGE) runserver
migrate: ./ve/bin/python validate jenkins
$(MANAGE) migrate
validate: ./ve/bin/python
$(MANAGE) validate
shell: ./ve/bin/python
$(MANAGE) shell_plus
clean:
rm -rf ve
rm -rf media/CACHE
rm -rf reports
rm celerybeat-schedule
rm .coverage
find . -name '*.pyc' -exec rm {} \;
pull:
git pull
make validate
make test
make migrate
make flake8
rebase:
git pull --rebase
make validate
make test
make migrate
make flake8
# run this one the very first time you check
# this out on a new machine to set up dev
# database, etc. You probably *DON'T* want
# to run it after that, though.
install: ./ve/bin/python validate jenkins
createdb $(APP)
$(MANAGE) syncdb --noinput
make migrate