forked from getsentry/sentry-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
81 lines (63 loc) · 1.84 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
all: test
.PHONY: all
clean:
@cargo clean
.PHONY: clean
build:
@cargo build
.PHONY: build
doc:
@cargo doc
.PHONY: doc
check-all-features:
@echo 'ALL FEATURES'
@RUSTFLAGS=-Dwarnings cargo check --all-features
.PHONY: check-all-features
check-no-default-features:
@echo 'NO DEFAULT FEATURES'
@RUSTFLAGS=-Dwarnings cargo check --no-default-features
.PHONY: check-no-default-features
check-default-features:
@echo 'DEFAULT FEATURES'
@RUSTFLAGS=-Dwarnings cargo check
.PHONY: check-default-features
check-failure:
@echo 'NO CLIENT + FAILURE'
@RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'with_failure'
.PHONY: check-failure
check-log:
@echo 'NO CLIENT + LOG'
@RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'with_log'
.PHONY: check-log
check-panic:
@echo 'NO CLIENT + PANIC'
@RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'with_panic'
.PHONY: check-panic
check-error-chain:
@echo 'NO CLIENT + ERROR_CHAIN'
@RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'with_error_chain'
.PHONY: check-error-chain
check-all-impls:
@echo 'NO CLIENT + ALL IMPLS'
@RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'with_failure,with_log,with_panic,with_error_chain'
.PHONY: check-all-impls
check: check-no-default-features check-default-features
.PHONY: check-all-features
checkall: check-all-features check-no-default-features check-default-features check-failure check-log check-panic check-error-chain check-all-impls
.PHONY: checkall
cargotest:
@echo 'TESTSUITE'
@cargo test --features=with_test_support
.PHONY: cargotest
cargotestall:
@echo 'TESTSUITE'
@cargo test --all-features
.PHONY: cargotest
test: checkall cargotestall
.PHONY: test
format-check:
@cargo fmt -- --check
.PHONY: format-check
lint:
@cargo +nightly clippy --all-features -- -D clippy
.PHONY: lint