-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 695 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 695 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
.PHONY: init init-migration build run db-migrate test tox
init: build run
docker-compose exec web flask db init
docker-compose exec web flask db migrate
docker-compose exec web flask db upgrade
docker-compose exec web flask init
@echo "Init done, containers running"
build:
docker-compose build
run:
@mkdir -p db
docker-compose up -d
db-init:
docker-compose exec web flask db init
db-migrate:
docker-compose exec web flask db migrate
db-upgrade:
docker-compose exec web flask db upgrade
test:
docker-compose run -v $(PWD)/tests:/code/tests:ro web tox -e test
tox:
docker-compose run -v $(PWD)/tests:/code/tests:ro web tox -e py38
lint:
docker-compose run web tox -e lint