-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 939 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 939 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 devops db upgrade
docker-compose exec web devops init
@echo "Init done, containers running"
build:
docker-compose build
run:
docker-compose up -d
db-migrate:
docker-compose exec web devops db migrate
db-upgrade:
docker-compose exec web devops 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