File: justfile

package info (click to toggle)
rust-temptree 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 124 kB
  • sloc: sh: 6; makefile: 4
file content (42 lines) | stat: -rwxr-xr-x 770 bytes parent folder | download
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
bt := '0'

export RUST_BACKTRACE := bt

version := `sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/v\1/p' Cargo.toml | head -1`

all: clippy test forbid
	git diff --no-ext-diff --quiet --exit-code
	cargo test

watch:
	cargo watch --clear --exec ltest

test:
	cargo test

forbid:
	./bin/forbid

publish: all
	git branch | grep '* master'
	cargo publish
	git tag -a {{version}} -m 'Release {{version}}'
	git push github {{version}}

# clean up feature branch BRANCH
done BRANCH:
	git checkout master
	git diff --no-ext-diff --quiet --exit-code
	git pull --rebase github master
	git diff --no-ext-diff --quiet --exit-code {{BRANCH}}
	git branch -D {{BRANCH}}

push: all
	git push

pr: all
	gh pr create

# everyone's favorite animate paper clip
clippy:
	cargo clippy