forked from cnosdb/cnosdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (29 loc) · 1.05 KB
/
Makefile
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
docs_check:
cargo doc --no-deps --document-private-items --all-features
docs:
cargo doc --no-deps --document-private-items --all-features --open
fmt_check:
cargo +nightly fmt --all -- --check
fmt:
cargo +nightly fmt --all
clippy_check:
BUILD_PROTOS=1 cargo clippy --workspace --all-targets --features coordinator_e2e_test --features meta_e2e_test -- -D warnings
clippy:
BUILD_PROTOS=1 cargo clippy --workspace --all-targets --features coordinator_e2e_test --features meta_e2e_test --fix --allow-staged
build:
cargo build --workspace --bins
build_release:
BUILD_PROTOS=1 cargo build --release --workspace --bins
build_trace:
cargo clean;
git stash;
export BACKTRACE=on; BUILD_PROTOS=1 cargo build --workspace --bins --features backtrace;
git reset --hard; git stash pop || true
test:
BUILD_PROTOS=1 cargo test --workspace --exclude e2e_test
check: fmt_check clippy_check build test docs_check
clean:
cargo clean
run:
cargo run -- run
.PHONY: docs_check docs fmt_check fmt clippy_check clippy build build_release build_trace test check clean run