forked from ethereum/fe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1020 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
43
44
45
.PHONY: docker-test
docker-test:
docker run \
--rm \
--volume "$(shell pwd):/mnt" \
--workdir '/mnt' \
rustlang/rust:nightly \
cargo test --workspace
.PHONY: docker-wasm-test
docker-wasm-test:
docker run \
--rm \
--volume "$(shell pwd):/mnt" \
--workdir '/mnt' \
davesque/rust-wasm \
wasm-pack test --node -- --workspace
.PHONY: coverage
coverage:
cargo tarpaulin --workspace --all-features --verbose --timeout 120 --exclude-files 'tests/*' --exclude-files 'main.rs' --out xml html
.PHONY: clippy
clippy:
cargo clippy --all-targets --all-features -- -D warnings -A clippy::upper-case-acronyms
.PHONY: rustfmt
rustfmt:
cargo fmt --all -- --check
.PHONY: lint
lint: rustfmt clippy
.PHONY: build-docs
build-docs:
cargo doc --no-deps --workspace
notes:
towncrier --yes --version $(version)
git commit -m "Compile release notes"
release:
# Ensure release notes where generated before running the release command
./newsfragments/validate_files.py is-empty
cargo release $(version) --all