-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
Makefile
44 lines (34 loc) · 1.1 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
all: test
build:
@cargo build --all-features
doc:
@RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS="--cfg=docsrs" cargo doc --no-deps --all-features
test: cargotest
cargotest:
@echo "CARGO TESTS"
@rustup component add rustfmt 2> /dev/null
@cargo test -p insta
@cargo test -p insta --all-features
@cargo test -p insta --no-default-features
@cargo test -p insta --features redactions -- --test-threads 1
@cargo test -p cargo-insta
check-minver:
@echo "MINVER CHECK"
@cargo minimal-versions check -p insta
@cargo minimal-versions check -p insta --all-features
@cargo minimal-versions check -p insta --no-default-features
@cargo minimal-versions check -p insta --features redactions
check-msrv:
@echo "MSRV CHECK"
@cd insta && cargo msrv verify
@cd cargo-insta && cargo msrv verify
format:
@rustup component add rustfmt 2> /dev/null
@cargo fmt --all
format-check:
@rustup component add rustfmt 2> /dev/null
@cargo fmt --all -- --check
lint:
@rustup component add clippy 2> /dev/null
@cargo clippy --all-targets --workspace -- --deny warnings
.PHONY: all doc test cargotest format format-check lint update-readme