-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
65 lines (42 loc) · 1.18 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
# ======================== development commands ============================= #
# choose a command if given no other arguments.
default:
just --choose
# === run commands === #
run-demo:
./run.sh
run-test-server:
cargo run --package aquarius-test-server
run-load-test:
cargo run -- --trace --total 512 --rate 128 localhost:8080
# === common commands === #
build:
cargo build --all-features --all-targets
check:
cargo check --all-features --all-targets
check-short:
cargo check --all-features --all-targets --message-format=short
doc:
cargo doc
doc-open:
cargo doc --open
doc-test:
cargo test --doc
lint:
cargo clippy --all-targets
test:
cargo nextest run --all-features --all-targets
test-all: test doc-test
# === ci: build, document, test, and lint
ci: build doc test-all lint
# === watch command output === #
watch-check:
cargo watch --clear --why --shell 'just check'
watch-check-short:
cargo watch --clear --why --shell 'just check-short'
watch-test:
cargo watch --clear --why --shell 'just test'
watch-ci:
cargo watch --clear --why --shell 'just ci'
watch-demo:
cargo watch --clear --why --shell 'just run-demo'