This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
113 lines (82 loc) · 2.05 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
install:
pip install -r requirements/dev.txt
npm install
serve:
./manage.py runserver
ifeq ($(SCOPE),)
SCOPE = clips user_accounts intake formation health_check phone partnerships
endif
test:
./manage.py test $(SCOPE) \
--verbosity 2
pycodestyle
test.keepdb:
./manage.py test $(SCOPE) \
--verbosity 2 --keepdb
test.coverage:
coverage run \
./manage.py test $(SCOPE) \
--verbosity 2
coverage report -m
test.coverage.keepdb:
coverage run \
./manage.py test $(SCOPE) \
--verbosity 2 --keepdb
coverage report -m
test.deluxe:
DELUXE_TEST=1 \
./manage.py test $(SCOPE) \
--verbosity 2
FEATURES=features
test.behave:
./manage.py behave $(FEATURES) \
--keepdb
test.behave.debug:
./manage.py behave $(FEATURES) \
--keepdb --verbosity 2 \
-D BEHAVE_DEBUG_ON_ERROR=yes
test.everything:
make test.coverage.keepdb
make test.behave
pycodestyle
db.seed:
python ./manage.py new_fixtures
db.setup:
python ./manage.py migrate
make db.seed
db.total_rebuild:
dropdb intake
createdb intake
make db.setup
db.dump_fixtures:
python ./manage.py dumpdata \
auth.User \
user_accounts.UserProfile \
auth.Group \
-o user_accounts/fixtures/mock_profiles.json \
--natural-foreign --natural-primary \
--indent 2
python ./manage.py dumpdata \
auth.Group \
-o user_accounts/fixtures/groups.json \
--natural-foreign --natural-primary \
--indent 2
python ./manage.py dumpdata \
user_accounts.Organization \
-o user_accounts/fixtures/organizations.json \
--natural-foreign --natural-primary \
--indent 2
python ./manage.py dumpdata \
user_accounts.Address \
-o user_accounts/fixtures/addresses.json \
--natural-foreign \
--indent 2
python ./manage.py dumpdata \
intake.County \
-o intake/fixtures/counties.json \
--indent 2 \
--format json
# static.dev runs sass to convert .scss stylesheets to css
# it will watch the scss directory and automatically regenerate css
static.dev:
sass --watch intake/static/intake/scss:intake/static/intake/css