forked from cosmicpython/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (22 loc) · 724 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
# these will speed up builds, for docker-compose >= 1.25
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
all: down build up test
build:
docker-compose build
up:
docker-compose up -d
down:
docker-compose down --remove-orphans
test: up
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration /tests/e2e
unit-tests:
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit
integration-tests: up
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/integration
e2e-tests: up
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/e2e
logs:
docker-compose logs --tail=25 api redis_pubsub
black:
black -l 86 $$(find * -name '*.py')