-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 1.53 KB
/
Makefile
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
SCRIPT_DIR = "scripts"
.PHONY: format-and-lint run-unit-tests run-integration-tests \
spin-up-integration-test-docker-containers \
spin-up-docker-containers shut-down-docker-containers \
generate-swagger-docs help
# Help target to list all available targets
help:
@echo "Available Makefile targets:"
@echo " format-and-lint - Run the format and linting script"
@echo " run-unit-tests - Run the unit tests"
@echo " run-integration-tests - Run the integration tests"
@echo " spin-up-integration-test-docker-containers - Spin up Docker containers for integration tests (Postgres, Azure Blob Storage)"
@echo " spin-up-docker-containers - Spin up Docker containers with internal containerized applications"
@echo " shut-down-docker-containers - Shut down the application Docker containers"
@echo " generate-swagger-docs - Convert Go annotations to Swagger Documentation 2.0"
format-and-lint:
@cd $(SCRIPT_DIR) && ./format-and-lint.sh
run-unit-tests:
@cd $(SCRIPT_DIR) && ./run-test.sh -u
run-integration-tests:
@cd $(SCRIPT_DIR) && ./run-test.sh -i
spin-up-integration-test-docker-containers:
docker-compose up -d postgres azure-blob-storage
spin-up-docker-containers:
docker-compose up -d --build
shut-down-docker-containers:
docker-compose down -v
generate-swagger-docs:
@cd $(SCRIPT_DIR) && ./generate-docs.sh
generate-grpc-files:
@cd $(SCRIPT_DIR) && ./generate-grpc-files.sh