mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 06:48:03 +00:00
03a1918993
Signed-off-by: xermicus <cyrill@parity.io>
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
.PHONY: install format test test-solidity test-cli test-integration test-workspace clean
|
|
|
|
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 install 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
|
|
|
|
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
|