-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (39 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
46 lines (39 loc) · 1.01 KB
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
.PHONY: alpha build bumped check lint pc release test up update
default: check
check: pc lint test
pc:
prek run -a
lint:
cargo fmt --all
cargo clippy --fix --allow-dirty --all-targets -- -D warnings
lint-ci:
cargo fmt --all --check
cargo clippy --all-targets -- -D warnings
test:
cargo llvm-cov nextest
test-ci: test
cargo llvm-cov report --lcov --output-path lcov.info
update: up up-ci
up:
cargo update --recursive --verbose
cargo upgrade --incompatible
up-ci:
prek update
pinact run --update
build:
cargo build
bumped:
git cliff --bumped-version
# make alpha TAG=$(git cliff --bumped-version)-alpha.0
alpha: check
git tag -a $(TAG) -m "chore(release): $(TAG)"
git push origin $(TAG)
# make release TAG=$(git cliff --bumped-version)
release: check
git cliff -o CHANGELOG.md --tag $(TAG)
prek run --files CHANGELOG.md || prek run --files CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore(release): prepare for $(TAG)"
git push
git tag -a $(TAG) -m "chore(release): $(TAG)"
git push origin $(TAG)