-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 962 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 962 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
#TODO: dev with docker
.PHONY: init init-migration build run db-migrate test tox
init: build run
docker-compose exec web baoapi db upgrade
docker-compose exec web baoapi init
@echo "Init done, containers running"
build:
docker-compose build
run:
docker-compose up -d
db-migrate:
docker-compose exec web baoapi db migrate
db-upgrade:
docker-compose exec web baoapi 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 py37
docker-compose start celery
lint:
docker-compose run web tox -e lint