-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
46 lines (35 loc) · 1.13 KB
/
Copy pathmakefile
File metadata and controls
46 lines (35 loc) · 1.13 KB
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
40
41
42
43
44
45
46
run:
@echo "--> Running Docker."
docker compose up
run-debug:
@echo "--> Running Debug Mode with IPDB"
docker compose run --service-ports web
run-extras:
@echo "--> Running Docker with Extras"
docker compose --profile extras up
close:
@echo "--> Close Docker."
docker compose down
build:
@echo "--> Creating Docker."
docker compose build
bash:
docker compose run --rm web bash
test: ## Run all tests (pytest).
@echo "--> Testing on Docker."
# docker compose run --rm web py.test $(path) -s --cov-report term --cov-report html
docker compose run --rm web bash -c "cd ../../. && py.test -s --cov-report term --cov-report html"
django-makemigrations:
@echo "--> Creating migrations on Docker."
docker compose run --rm web python manage.py makemigrations $(name)
django-migrate:
@echo "--> Running migrations on Docker."
docker compose run --rm web python manage.py migrate
open-test:
open htmlcov/index.html
shell-plus:
@echo "--> Run shell plus from django-extensions"
docker compose run web python manage.py shell_plus
shell:
@echo "--> Run shell plus from django-extensions"
docker compose run web python manage.py shell