-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathJustfile
More file actions
36 lines (28 loc) · 823 Bytes
/
Justfile
File metadata and controls
36 lines (28 loc) · 823 Bytes
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
# just manual: https://github.com/casey/just/#readme
_default:
@just --list
# Runs clippy on the sources
check:
cargo clippy --locked --tests -- -D warnings
# removes all build artifacts
clean:
rm -r target
# builds esc
build:
ESC_CLIENT_VERSION={{`cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "esc") | .version'` }} cargo build --locked
# builds in release mode
build-release:
ESC_CLIENT_VERSION={{`cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "esc") | .version'` }} cargo build --locked --release
# Formats the code base
fmt:
cargo fmt
# runs tests
test:
cargo test --locked
# runs the same checks performed by the CI job
ci:
just fmt
git diff --exit-code
just check
just build
just test