forked from codeforamerica/intake
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
120 lines (89 loc) · 2.29 KB
/
Makefile
File metadata and controls
120 lines (89 loc) · 2.29 KB
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
114
115
116
117
118
119
120
install:
pip install -r requirements/dev.txt
npm install
serve:
./manage.py runserver
SCOPE=user_accounts intake formation health_check phone partnerships
test:
./manage.py test $(SCOPE) \
--verbosity 2
pep8
test.behave:
./manage.py behave \
--keepdb
test.keepdb:
./manage.py test $(SCOPE) \
--verbosity 2 --keepdb
test.review_app:
pip install -r requirements/dev.txt
./manage.py migrate --settings project.settings.review_app
coverage run ./manage.py test $(SCOPE) \
--settings project.settings.review_app \
--verbosity 2 --keepdb
coverage report -m
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
test.everything:
pep8
make test.coverage.keepdb
make test.behave
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
db.pull.demo:
dropdb intake --if-exists
heroku pg:pull --app cmr-demo DATABASE_URL intake
# static.dev runs sass to convert .scss stylesheets to css
# it will watch the scss directory and automatically regenerate css
static.dev:
sass \
--require bourbon \
--require normalize-scss \
--require neat \
--watch intake/static/intake/scss:intake/static/intake/css