-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.19 KB
/
Makefile
File metadata and controls
45 lines (36 loc) · 1.19 KB
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
36
37
38
39
40
41
42
43
44
45
FOLDERS=backend frontend evaluation
GOOGLE_SECRET_JSON?=$(HOME)/secret.json
.PHONY: init
init:
@for folder in $(FOLDERS); do (cd $$folder && make init && cd ../); done
.PHONY: init-dev
init-dev:
@for folder in $(FOLDERS); do (cd $$folder && make init-dev && cd ../); done
.PHONY: format
format:
@for folder in $(FOLDERS); do (cd $$folder && make format && cd ../); done
.PHONY: check
check:
@for folder in $(FOLDERS); do \
(cd $$folder && make check && cd ../) || exit 1; \
done
@. ./backend/.venv/bin/activate && \
pre-commit run --all-files
.PHONY: docker-up
docker-up:
@docker compose -f docker-compose.yml up --build --wait
.PHONY: docker-down
docker-down:
@docker compose -f docker-compose.yml down --volumes --remove-orphans
.PHONY: docker-dev
docker-dev:
@docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build --wait
# --- Development Commands ---
.PHONY: seed-credentials
seed-credentials:
@cp $(GOOGLE_SECRET_JSON) backend/src
@cp $(GOOGLE_SECRET_JSON) evaluation/auto_evaluation/src
.PHONY: changelog
changelog:
@git log --pretty=format:"%h%x09%an%x09%ad%x09%s" --date=short --since="2024-06-01" > CHANGELOG.md
@cd .github/workflows && python changelog_report.py