forked from Quantarq/Quantara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 1.31 KB
/
Copy pathMakefile
File metadata and controls
42 lines (33 loc) · 1.31 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
prod:
@echo "Setting up production environment..."
@docker compose -f devops/docker-compose.quantara.yaml up --build
@echo "Production environment is ready."
dev:
@echo "Setting up development environment..."
@docker compose -f devops/docker-compose.quantara.dev.yaml up --build
windows:
@echo "Setting up for Windows..."
@docker compose -f devops/docker-compose.quantara.dev-windows.yaml up --build
@echo "Windows setup completed."
back:
@echo "Starting backend services..."
@docker compose -f devops/docker-compose.quantara.back.yaml up --build
@echo "Backend services are running."
test:
@echo "Running backend tests..."
@docker compose -f devops/docker-compose.quantara.back.yaml up -d --build
@docker compose -f devops/docker-compose.quantara.back.yaml exec -T backend poetry run pytest web_app/tests -v
lint:
@echo "Running pylint..."
@pip install "pylint>=3.0,<4.0"
@git ls-files '*.py' | xargs pylint --disable=all --enable=C0114,C0115,C0116,C0301 --output-format=colorized
frontend-test:
@echo "Running frontend tests..."
@cd quantara/frontend && yarn test:run
frontend-lint:
@echo "Running frontend lint..."
@cd quantara/frontend && yarn lint
ci: lint test frontend-test
@echo "CI checks passed!"
all:
@echo "Available targets: prod, dev, windows, back, test, lint, frontend-test, frontend-lint, ci"