-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
60 lines (48 loc) · 1.01 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: $(MAKECMDGOALS)
clean:
@rm -rf tests/tmp
cleantests:
@rm -rf tests/tmp/.git
@rm -rf tests/tmp/empty
@rm -rf tests/tmp/CHANGELOG.md
docs:
@mkdocs serve
docs-deploy:
@mkdocs gh-deploy
format:
@ruff format
gen generate:
@bash -c 'source tests/helpers.sh && generate ${PWD} tests/tmp'
reset-history: gen
@./reset-history.sh
test: cleantests
@./runtests.sh
changelog:
@git-changelog -Tio CHANGELOG.md -Bauto -c angular
release:
@test -n "$(version)" || { echo "error: usage: make release version=x.y.z" >&2; exit 1; }
@git add CHANGELOG.md
@git commit -m "docs: Update changelog for version $(version)"
@git tag $(version)
@git push
@git push --tags
DUTIES = \
test-changelog \
test-check \
test-check-api \
test-check-dependencies \
test-check-docs \
test-check-quality \
test-check-types \
test-clean \
test-coverage \
test-docs \
test-docs-deploy \
test-format \
test-help \
test-lock \
test-release \
test-setup \
test-test
$(DUTIES):
@cd tests/tmp && make $(subst test-,,$@)