forked from rusty-celery/rusty-celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (43 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
52
.PHONY : build
build :
cargo build
.PHONY : setup
setup :
rustup component add rustfmt
rustup component add clippy
.PHONY : format
format :
cargo fmt --
.PHONY : check-fmt
check-fmt :
cargo fmt --all -- --check
.PHONY : check-clippy
check-clippy :
cargo clippy --workspace --all-targets --all-features -- \
-D warnings \
-A clippy::upper-case-acronyms
.PHONY : lint
lint : check-fmt check-clippy
.PHONY : test
test :
@cargo test --workspace --lib
@cargo test --workspace --doc
@cargo test --test codegen task_codegen
@cargo test --no-run --test codegen app_codegen
@cargo test --no-run --test codegen beat_codegen
.PHONY : broker-tests
broker-tests :
@cargo test --test integrations brokers::amqp
@cargo test --test integrations brokers::redis
.PHONY : run-all-tests
run-all-tests :
@cargo test --workspace --lib
@cargo test --workspace --doc
@cargo test --test codegen task_codegen
@cargo test --no-run --test codegen app_codegen
@cargo test --no-run --test codegen beat_codegen
@cargo test --test integrations brokers::amqp
@cargo test --test integrations brokers::redis
.PHONY : build-docs
build-docs :
cargo doc --all-features --workspace --no-deps