-
Notifications
You must be signed in to change notification settings - Fork 73
/
Justfile
43 lines (31 loc) · 1.08 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
SED := `command -v gsed || command -v sed`
help:
@just --list
# git tasks to start next development version
prepare-dev-version v:
git checkout trunk
{{SED}} -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}+dev"/' Cargo.toml Cargo.lock
git add Cargo.toml Cargo.lock
git commit -m 'Begin v{{v}} development'
# git tasks to run to merge trunk into master
prepare-release v:
git checkout trunk
cargo clippy
{{SED}} -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}"/' Cargo.toml Cargo.lock
git add Cargo.toml Cargo.lock
git commit -m 'Version {{v}}'
git checkout master
git merge trunk --no-ff -m 'v{{v}}'
# git tag 'v{{v}}'
# enable and run benchmarks
benchmark *args:
scripts/benchmark-bigdecimal {{args}}
# enable and run property-tests
run-property-tests:
scripts/bigdecimal-property-tests test
# enable property test dependencies
enable-property-tests:
scripts/bigdecimal-property-tests enable
# print decimals with various formatting rules
run-formatting-example:
cargo run --example formatting-examples