-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 927 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
build:
docker compose --file docker-compose.yml build --no-cache
status:
## Show status of containers
@docker compose ps
stop:
## Stop containers
@docker compose --file docker-compose.yml stop
clean:
## Clean all data
@docker compose --file docker-compose.yml down
up:
## Start all or c=<name> containers in foreground
@docker compose --file docker-compose.yml up $(c)
start:
## Start all or c=<name> containers in background
@docker compose --file docker-compose.yml up -d $(c)
test:
## Run tests
@docker compose --file docker-compose.yml run --rm backend bash -c "pytest --cov=./ --cov-report=xml:/shared/coverage.xml --benchmark-skip --cov-config=.coveragerc"
lint:
## Lint code
@docker-compose --file docker-compose.yml run --rm backend bash -c "flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics && flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics"