forked from vinteumorg/Floresta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
47 lines (36 loc) · 926 Bytes
/
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
# Runs the service locally
run:
cargo run
# Runs the service locally with release options
run-release:
cargo run --release
# Compile project with debug options
build:
cargo build
# Compile project with release options
build-release:
cargo build --release
# Clean project build directory
clean:
cargo clean
# Execute all tests
test name="":
@just test-doc {{name}}
@just test-unit {{name}}
@just test-int {{name}}
# Execute doc tests
test-doc name="":
cargo +nightly test {{name}} --doc
# Execute unit tests
test-unit name="":
cargo test --lib {{name}} -- --nocapture
# Execute integration tests
test-int name="":
cargo test --test '*' {{name}} -- --nocapture
# Generate documentation for all crates
doc:
@just test-doc
cargo +nightly doc --no-deps
# Format code and run configured linters
lint:
cargo +nightly fmt --all && cargo +nightly clippy --all-targets