-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 911 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
33
34
35
.PHONY: local-setup install-pre-commit install-local-reqs docker-build-dev docker-up-dev
install-local-reqs:
pip install -r requirements/local.txt
install-pre-commit:
pre-commit uninstall; pre-commit install
setup-pre-commit:
$(MAKE) install-local-reqs
$(MAKE) install-pre-commit;
docker-build-dev:
docker-compose -f docker-compose.yml build
docker-up-dev:
docker-compose up -d --force-recreate --build
docker-up-dev-log:
docker-compose up --force-recreate --build
docker-down-dev:
docker-compose down
docker-coverage-report:
docker-compose exec -i backend bash -c "coverage run manage.py test; coverage report"
docker-run-tests:
docker-compose exec -i backend bash -c "python manage.py test"
docker-run-tests-no-i:
docker-compose exec backend bash -c "python manage.py test"
docker-coverage-report-no-i:
docker-compose exec backend bash -c "coverage run manage.py test; coverage report"