Makefile 889 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1
.PHONY: documentation
2

Florent Chehab's avatar
Florent Chehab committed
3 4
up:
	docker-compose up
5

Florent Chehab's avatar
Florent Chehab committed
6 7
docker-pull:
	docker-compose pull
Florent Chehab's avatar
Florent Chehab committed
8

Florent Chehab's avatar
Florent Chehab committed
9 10
up--build:
	docker-compose up --build
11

Florent Chehab's avatar
Florent Chehab committed
12 13
test_backend:
	docker-compose exec backend sh -c "cd backend && pytest base_app/ frontend_app/ backend_app/"
14

Florent Chehab's avatar
Florent Chehab committed
15
check_backend:
Florent Chehab's avatar
Florent Chehab committed
16 17 18 19 20 21 22 23 24 25
	docker-compose exec backend sh -c "cd backend && ./manage.py check"

lint_backend:
	docker-compose exec backend sh -c "cd backend && flake8"

lint_frontend:
	docker-compose exec frontend sh -c "cd frontend && npm run lint"

build_frontend:
	docker-compose exec frontend sh -c "cd frontend && npm run build"
26

Florent Chehab's avatar
Florent Chehab committed
27
shell_backend:
28
	docker-compose exec backend sh -c "cd backend && bash"
29

Florent Chehab's avatar
Florent Chehab committed
30
shell_frontend:
31 32 33 34
	docker-compose exec frontend sh -c "cd frontend && sh"

django_shell:
	docker-compose exec backend sh -c "cd backend && ./manage.py shell"
35

36 37
documentation:
	cd documentation && $(MAKE) all
38

39 40
documentation_clean:
	cd documentation && $(MAKE) clean