-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 782 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 782 Bytes
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
dev:
pipenv install --dev
reqs:
pipenv run pipenv_to_requirements -f
serve:
pipenv run flask run
deploy: reqs
gcloud app deploy app.yaml --project ${OTD_PROJECT_ID}
migrate-init:
pipenv run flask db init
migrate-new:
@echo "Enter migration message: "
@read NAME; \
pipenv run flask db migrate --message "${NAME}"
migrate-rev:
@echo "Enter migration message: "
@read NAME; \
pipenv run flask db revision --message "${NAME}"
migrate:
pipenv run flask db upgrade
migrate-history:
pipenv run flask db history
test:
FLASK_ENV=testing pipenv run pytest ./api/tests/test_*.py
lint:
pipenv run flake8 --ignore=E501 --exclude=".svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,api/db/migrations/*.py,api/db/migrations/versions/*.py,api/db/models/__init__.py" api