mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 06:48:03 +00:00
0d39b289cb
Signed-off-by: xermicus <cyrill@parity.io>
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
.PHONY: install format test test-solidity test-cli test-integration test-workspace clean docs docs-build
|
|
|
|
install: install-bin install-npm
|
|
|
|
install-bin:
|
|
cargo install --path crates/solidity
|
|
|
|
install-npm:
|
|
npm install && npm fund
|
|
|
|
format:
|
|
cargo fmt --all --check
|
|
|
|
test: format clippy test-cli test-workspace
|
|
cargo test --workspace
|
|
|
|
test-integration: install-bin
|
|
cargo test --package revive-integration
|
|
|
|
test-solidity: install
|
|
cargo test --package revive-solidity
|
|
|
|
test-workspace: install
|
|
cargo test --workspace
|
|
|
|
test-cli: install
|
|
npm run test:cli
|
|
|
|
bench-prepare: install-bin
|
|
cargo criterion --bench prepare --features bench-evm,bench-pvm --message-format=json \
|
|
| criterion-table > crates/benchmarks/PREPARE.md
|
|
|
|
bench-execute: install-bin
|
|
cargo criterion --bench execute --features bench-evm,bench-pvm --message-format=json \
|
|
| criterion-table > crates/benchmarks/EXECUTE.md
|
|
|
|
bench-extensive: install-bin
|
|
cargo criterion --all --all-features --message-format=json \
|
|
| criterion-table > crates/benchmarks/BENCHMARKS.md
|
|
|
|
bench-quick: install-bin
|
|
cargo criterion --all --features bench-evm
|
|
|
|
bench: install-bin
|
|
cargo criterion --all --features bench-evm,bench-pvm --message-format=json \
|
|
| criterion-table > crates/benchmarks/BENCHMARKS.md
|
|
|
|
clippy:
|
|
cargo clippy --all-features --workspace --tests --benches
|
|
|
|
docs: docs-build
|
|
mdbook serve --open docs/
|
|
|
|
docs-build:
|
|
mdbook test docs/ && mdbook build docs/
|
|
|
|
clean:
|
|
cargo clean ; \
|
|
rm -rf node_modules ; \
|
|
rm -rf crates/solidity/src/tests/cli-tests/artifacts ; \
|
|
cargo uninstall revive-solidity ; \
|
|
rm -f package-lock.json
|