forked from getsentry/sentry-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
97 lines (77 loc) · 2.39 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
90
91
92
93
94
95
96
97
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 --all
.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-actix:
@echo 'ACTIX INTEGRATION'
@RUSTFLAGS=-Dwarnings cargo check --manifest-path integrations/sentry-actix/Cargo.toml
.PHONY: check-actix
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 check-actix
.PHONY: checkall
cargotest:
@echo 'TESTSUITE'
@cargo test --features=with_test_support
.PHONY: cargotest
cargotestall:
@echo 'TESTSUITE'
@cargo test --all-features --all
.PHONY: cargotest
test: checkall cargotestall
.PHONY: test
format-check:
@rustup component add rustfmt-preview 2> /dev/null
@cargo fmt -- --check
.PHONY: format-check
lint:
@rustup component add clippy-preview 2> /dev/null
@cargo clippy --all-features --tests --all --examples -- -D clippy
.PHONY: lint
travis-push-docs:
@# Intentionally allow command output
cargo doc --no-deps
cp misc/docs/index.html target/doc/
cd target/ && zip -r gh-pages ./doc
npm install -g @zeus-ci/cli
zeus upload -t "application/zip+docs" target/gh-pages.zip
.PHONY: travis-push-docs