forked from getsentry/sentry-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (68 loc) · 1.87 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
82
83
84
85
86
87
88
89
all: check
.PHONY: all
clean:
@cargo clean
.PHONY: clean
build:
@cargo build
.PHONY: build
doc:
@cargo doc
.PHONY: doc
check: style lint test
.PHONY: check
# Linting
style:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt -- --check
.PHONY: style
format:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt
.PHONY: format
lint:
@rustup component add clippy --toolchain stable 2> /dev/null
cargo +stable clippy --all-features --tests --examples -- -D clippy::all
.PHONY: lint
# Tests
test: checkall testall
.PHONY: test
testfast:
@echo 'TESTSUITE'
cd sentry && cargo test --features=test
.PHONY: testfast
testall:
@echo 'TESTSUITE'
cargo test --all-features
.PHONY: testall
# Checks
checkfast: check-no-default-features check-default-features
.PHONY: checkfast
checkall: check-all-features check-no-default-features check-default-features check-panic check-curl-transport check-actix
.PHONY: checkall
check-all-features:
@echo 'ALL FEATURES'
@RUSTFLAGS=-Dwarnings cargo check --all-features
.PHONY: check-all-features
check-default-features:
@echo 'DEFAULT FEATURES'
@RUSTFLAGS=-Dwarnings cargo check
.PHONY: check-default-features
check-no-default-features:
@echo 'NO DEFAULT FEATURES'
@cd sentry-core && RUSTFLAGS=-Dwarnings cargo check --no-default-features
.PHONY: check-no-default-features
check-panic:
@echo 'NO CLIENT + PANIC'
@cd sentry && RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'panic'
.PHONY: check-panic
check-curl-transport:
@echo 'CURL TRANSPORT'
@cd sentry && RUSTFLAGS=-Dwarnings cargo check --features curl
@echo 'CURL TRANSPORT ONLY'
@cd sentry && RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'curl,panic'
.PHONY: check-curl-transport
check-actix:
@echo 'ACTIX INTEGRATION'
@cd sentry-actix && RUSTFLAGS=-Dwarnings cargo check
.PHONY: check-actix