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
|