forked from stratis-storage/devicemapper-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 873 Bytes
/
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
DENY = "-D warnings -D future-incompatible -D unused"
${HOME}/.cargo/bin/cargo-expand:
cargo install cargo-expand
${HOME}/.cargo/bin/cargo-tree:
cargo install cargo-tree
expand: ${HOME}/.cargo/bin/cargo-expand
PATH=${HOME}/.cargo/bin:${PATH} cargo expand core::errors
PATH=${HOME}/.cargo/bin:${PATH} cargo expand core::types
PATH=${HOME}/.cargo/bin:${PATH} cargo expand units
tree: ${HOME}/.cargo/bin/cargo-tree
PATH=${HOME}/.cargo/bin:${PATH} cargo tree
fmt:
cargo fmt
travis_fmt:
cargo fmt -- --check
build:
RUSTFLAGS=${DENY} cargo build
test:
RUSTFLAGS=${DENY} RUST_BACKTRACE=1 cargo test -- --skip sudo_ --skip loop_
sudo_test:
sudo env "PATH=${PATH}" RUSTFLAGS=${DENY} RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test
clippy:
cargo clippy --all-targets --all-features -- -D warnings
.PHONY:
build
clippy
fmt
sudo_test
test
travis_fmt
tree