-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 915 Bytes
/
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
.PHONY: help
help: ## Print this help message and exit
@echo Usage:
@echo " make [target]"
@echo
@echo Targets:
@awk -F ':|##' \
'/^[^\t].+?:.*?##/ {\
printf " %-30s %s\n", $$1, $$NF \
}' $(MAKEFILE_LIST)
.PHONY: coverage
coverage: ## run code coverage report on module via unittest
@./scripts/coverage.sh ${case}
.PHONY: unit
unit: ## execute monitor unittest suite, for single case make unit case=<NAME>
@./scripts/unittest.sh ${case}
.PHONY: lint
lint: ## lint codebase using a combination of yamllint, shellcheck and flake8
@./scripts/lint.sh
.PHONY: dev
dev: pull config ## Run development environment
@./scripts/dev.sh
.PHONY: pull
pull: ## Pull from container registry
@docker-compose -f docker/dev/docker-compose.yaml pull
.PHONY: clean
clean: ## Clean docker environment
@./scripts/clean.sh
.PHONY: config
config: ## Run docker compose config validation
@./scripts/config.sh