Skip to content

Commit

Permalink
feat: added additional shortcuts to the makefile (#2283)
Browse files Browse the repository at this point in the history
fixes #2208.

Co-authored-by: Vignesh Hari <[email protected]>
  • Loading branch information
dhruv-goyal-10 and vigneshhari authored Aug 25, 2024
1 parent a7287b1 commit 2bcb20a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build, re-build, up, down, list, logs, test, makemigrations
.PHONY: build, re-build, up, down, list, logs, test, makemigrations, reset_db


DOCKER_VERSION := $(shell docker --version 2>/dev/null)
Expand Down Expand Up @@ -47,3 +47,10 @@ test-coverage:
docker compose exec backend bash -c "coverage run manage.py test --settings=config.settings.test --keepdb --parallel --shuffle"
docker compose exec backend bash -c "coverage combine || true; coverage xml"
docker compose cp backend:/app/coverage.xml coverage.xml

reset_db:
docker compose exec backend bash -c "python manage.py reset_db --noinput"
docker compose exec backend bash -c "python manage.py migrate"

%:
docker compose exec backend bash -c "python manage.py $*"

0 comments on commit 2bcb20a

Please sign in to comment.