Makefile 758 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
28
shell_backend:
	docker-compose exec backend sh
29

Florent Chehab's avatar
Florent Chehab committed
30
31
shell_frontend:
	docker-compose exec frontend sh
32

33
34
documentation:
	cd documentation && $(MAKE) all
35

36
37
documentation_clean:
	cd documentation && $(MAKE) clean