-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjustfile
62 lines (51 loc) · 1.27 KB
/
justfile
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
61
watch +args='test':
cargo watch --clear --exec '{{args}}'
clippy:
cargo clippy --all --all-targets -- --deny warnings
ci: clippy
cargo fmt -- --check
cargo test --all
cargo run --example simple_sign_verify_encoded
fmt:
cargo fmt --all
doc:
cargo doc --all --open
outdated:
cargo outdated -R --workspace
unused:
cargo +nightly udeps
coverage:
cargo llvm-cov
locks:
#!/usr/bin/env bash
set -euo pipefail
for file in Cargo-minimal.lock Cargo-recent.lock; do
cp "$file" Cargo.lock
cargo check
cp Cargo.lock "$file"
done
prepare-release revision='master':
#!/usr/bin/env bash
set -euxo pipefail
git checkout {{ revision }}
git pull origin {{ revision }}
echo >> CHANGELOG.md
git log --pretty='format:- %s' >> CHANGELOG.md
$EDITOR CHANGELOG.md
$EDITOR Cargo.toml
version=`sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1`
cargo check
git checkout -b release-$version
git add -u
git commit -m "Release $version"
gh pr create --web
publish-release revision='master':
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/release
git clone https://github.com/rust-bitcoin/bip322.git tmp/release
cd tmp/release
git checkout {{ revision }}
cargo publish
cd ../..
rm -rf tmp/release