-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
justfile
74 lines (58 loc) · 1.5 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
dev:
just fetch
just fmt
just lint
just test
fetch:
uv sync
cargo fetch
fmt:
uvx ruff format
cargo fmt
lint:
uvx ruff check
cargo clippy --all-features --all-targets
test:
cargo test --all-features
doc:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --open --no-deps --all-features
model:
uv run model/main.py update
codegen:
cargo run -p s3s-codegen
cargo fmt
cargo check
install name *ARGS:
uv run ./scripts/install.py {{name}} {{ARGS}}
# ------------------------------------------------
sync-version:
cargo set-version -p s3s 0.11.0-dev
cargo set-version -p s3s-policy 0.11.0-dev
cargo set-version -p s3s-aws 0.11.0-dev
cargo set-version -p s3s-fs 0.11.0-dev
cargo set-version -p s3s-test 0.11.0-dev
cargo set-version -p s3s-e2e 0.11.0-dev
publish:
cargo publish -p s3s
cargo publish -p s3s-policy
cargo publish -p s3s-aws
cargo publish -p s3s-fs
cargo publish -p s3s-test
cargo publish -p s3s-e2e
# ------------------------------------------------
assert_unchanged:
#!/bin/bash -ex
[[ -z "$(git status -s)" ]] # https://stackoverflow.com/a/9393642
ci-rust:
cargo fmt --all --check
cargo clippy --all-features --all-targets -- -D warnings
just ci-test
just codegen
just assert_unchanged
ci-test:
cargo test --all-features
ci-python:
uvx ruff format --check
uvx ruff check
just model
just assert_unchanged