-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 797 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 797 Bytes
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
SHELL:=$(shell which bash)
.PHONY: help
help:
@grep -hE '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
ifndef VERBOSE
.SILENT:
endif
.PHONY: spotless
spotless:
git clean -fX build
git clean -fX .gradle
./gradlew clean
.PHONY: test
test: ## Run CI Checks
./gradlew cleanTest --warning-mode all test --continue spotlessCheck
.PHONY: watch
watch: ## Run tests continuously
./gradlew -t test --continue
.PHONY: todo
todo: # Print a list of relevant TODOs in the code
@echo "Remaining WIP:"
git grep -n TODO | grep -v README.md | egrep -v '^Makefile.*:todo:' && exit 1 || exit 0
.PHONY: reformat
reformat: ## Reformat all the code (as per pre-commit)
./gradlew spotlessApply
publish: test
./gradlew publish