This repository was archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
64 lines (47 loc) · 1.26 KB
/
justfile
File metadata and controls
64 lines (47 loc) · 1.26 KB
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
#!/usr/bin/env -S just --justfile
#
# To run this script, you must have installed the Just command runner. Execute:
# $ cargo install --locked just
#
# Setup the environment:
#
setup-cargo-hack:
cargo install --locked cargo-hack
setup-cargo-audit:
cargo install --locked cargo-audit
setup: setup-cargo-hack setup-cargo-audit
git config pull.rebase true
git config branch.autoSetupRebase always
cargo install --locked typos-cli
cargo install --locked cocogitto
cog install-hook --overwrite commit-msg
@echo "Done"
#
# Recipes for test and linting:
#
test-options := ""
test:
cargo test --no-fail-fast --workspace --all-features --all-targets -- {{test-options}}
test-verbose:
just --justfile {{justfile()}} test-options="--nocapture" test
ci-test:
xvfb-run --auto-servernum --server-args="-screen 0 800x600x24" just --justfile {{justfile()}} test-verbose
hack:
cargo install cargo-hack
cargo hack --feature-powerset --no-dev-deps check
audit:
cargo install cargo-audit
cargo audit
clippy:
cargo clippy --quiet --release --all-targets --all-features
cargo-fmt:
cargo fmt --all
cargo-fmt-check:
cargo fmt --check
#
# Misc recipes:
#
self-update:
cargo install --locked just
clean:
cargo clean