-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 1.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
.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 stop celery # stop celery to avoid conflicts with celery tests
docker-compose start rabbitmq redis # ensuring both redis and rabbitmq are started
docker-compose run -v $(PWD)/tests:/code/tests:ro web tox -e test
docker-compose start celery
tox:
docker-compose stop celery # stop celery to avoid conflicts with celery tests
docker-compose start rabbitmq redis # ensuring both redis and rabbitmq are started
docker-compose run -v $(PWD)/tests:/code/tests:ro web tox -e py38
docker-compose start celery
lint:
docker-compose run web tox -e lint