Makefile 513 Bytes
Newer Older
1
2
3
4
5
6
# You need to have source the env before using the makefile
.PHONY: docs

install_backend:
	pip install -r requirements.txt --quiet

Florent Chehab's avatar
Florent Chehab committed
7
build_frontend:
Florent Chehab's avatar
Florent Chehab committed
8
9
	npm run build

Florent Chehab's avatar
Florent Chehab committed
10
test_backend:
11
	cd backend && pytest base_app/ frontend_app/ backend_app/
12
13

test_backend_server:
14
	cd backend && pytest -n 4 base_app/ frontend_app/ backend_app/ --cov-report html
15

Florent Chehab's avatar
Florent Chehab committed
16
check_backend:
17
	cd backend && ./manage.py check
18

Florent Chehab's avatar
Florent Chehab committed
19
run_backend:
20
	cd backend && ./manage.py runserver
21
22
23


docs:
Florent Chehab's avatar
Florent Chehab committed
24
	cd docs && $(MAKE) all
25
26

docs_clean:
Florent Chehab's avatar
Florent Chehab committed
27
	cd docs && $(MAKE) clean