-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (26 loc) · 1.08 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
.PHONY: all build ci clean test
ci: lint test build ## Run only ci targets that lint/build/test the code
all: clean update lint_fix doc ci benchmarks ## Run all the targets including the ones that generate files/docs etc ...
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[31m%-25s\033[0m \033[32m%s\033[0m\n", $$1 , $$2}'
doc: ## Build source and api documentation
build/docs.sh
lint: install_tools ## Run golang linters in checking mode
build/lint.sh
lint_fix: ## Run golang linters in fix mode
build/lint_fix.sh
test: install_tools ## Run unit-tests
LOG_LEVEL=trace build/unit_tests.sh
benchmarks:
build/benchmarks.sh
build:
build/build.sh
clean: ## Clean up the temporary files
rm -rf vendor test-results markdownlint.summary.txt
update: ## updates all the go module versions
build/go_update.sh
install_tools:
build/install_tools.sh
mlint: ## Run miscellaneous md/yaml linters in view-only mode
yamllint --no-warnings -c .yamllint.yml *.yaml .github/workflows/*.yml
mdl -s .mdl_style.rb *.md docs/*.md