-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
104 lines (86 loc) · 2.19 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
watchtarget := "parallel-iter"
default:
@echo "No default command configured."
@just --list
watch watchtarget=watchtarget:
cargo watch \
--clear \
--shell 'just {{watchtarget}}' \
--ignore '**/*.svg' \
--ignore 'lcov.info' \
--ignore 'wip/*' \
--ignore 'README.md' \
--ignore 'mutants.out*/**'
parallel-iter:
@parallel just quietly -- \
format \
test \
verify \
update-coverage \
docs \
mutants
setup-cargo-plugins:
cargo install cargo-watch --force
cargo install cargo-tarpaulin --force
cargo install cargo-doc --force
cargo install cargo-mutants --force
cargo install cargo-readme --force
test:
RUST_BACKTRACE=1 \
CARGO_TERM_COLOR="always" \
cargo test \
--target-dir target/just-test \
--workspace \
--quiet \
--all-targets && \
cargo test \
--target-dir target/just-test-docs \
--workspace \
--quiet \
--doc
quietly recipe:
@chronic unbuffer just {{recipe}}
@echo -e "\033[0;32m{{recipe}} exited without error.\033[0m"
verify: verify-check verify-clippy
verify-check:
RUSTFLAGS="-D warnings" \
CARGO_TERM_COLOR="always" \
cargo check \
--target-dir target/just-check \
--workspace \
--all-features
verify-clippy:
RUSTFLAGS="-D warnings" \
CARGO_TERM_COLOR="always" \
cargo clippy \
--workspace \
--target-dir target/just-clippy
format:
CARGO_TERM_COLOR="always" \
cargo fmt
build-diagrams:
make svg
update-coverage:
CARGO_TERM_COLOR="always" \
cargo tarpaulin \
--target-dir target/just-tarpaulin \
--out Lcov \
--skip-clean
mutants:
CARGO_TERM_COLOR="always" \
cargo mutants \
--no-times
docs:
just build-diagrams
CARGO_TERM_COLOR="always" \
RUSTFLAGS="-Dmissing_docs" \
cargo +nightly doc \
--features doc-images \
--target-dir target/just-doc
publish-crates:
cargo publish -p "roopes-core"
cargo publish -p "roopes-derive"
cargo publish -p "roopes"
version-check:
cargo semver-checks \
--ignore roopes-examples