-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 669 Bytes
/
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
install:
poetry install
test:
poetry run pytest
lint:
poetry run flake8 page_analyzer
test-coverage:
poetry run pytest --cov=page_analyzer --cov-report xml
self_check:
poetry check
check: self_check test lint
build: check
poetry build
dev:
poetry run flask --app page_analyzer:app --debug run
PORT ?= 8000
start:
poetry run gunicorn -w 5 -b 0.0.0.0:$(PORT) page_analyzer:app
start-testdb:
docker-compose -f docker-compose.test.yml up -d
stop-testdb:
docker-compose -f docker-compose.test.yml down
init_db:
poetry run flask --app page_analyzer:app init-db
.PHONY: install test lint selfcheck check build dev start start-testdb stop-testdb init_db