wormhole-circle-integration/evm/Makefile

38 lines
754 B
Makefile
Raw Normal View History

include env/testing.env
2022-10-14 08:12:30 -07:00
.PHONY: dependencies test clean all
2022-10-14 08:12:30 -07:00
all: build
.PHONY: clean
clean:
forge clean
rm -rf node_modules lib out ts/src/ethers-contracts
2022-10-14 08:12:30 -07:00
.PHONY: dependencies
dependencies: node_modules lib/forge-std
2022-10-14 08:12:30 -07:00
node_modules:
npm ci
2022-10-14 08:12:30 -07:00
lib/forge-std:
forge install --no-git --no-commit foundry-rs/forge-std
ts/src/ethers-contracts:
npm run build-types
2022-10-14 08:12:30 -07:00
build: dependencies
forge build
.PHONY: test
test: dependencies
forge test --fork-url ${TESTING_FORK_RPC} -vv
.PHONY: gas-report
gas-report: dependencies
forge test --fork-url ${TESTING_FORK_RPC} --match-path forge/tests/gas/* --fuzz-runs 512 --gas-report
2022-10-14 08:12:30 -07:00
.PHONY: gas-snapshot
gas-snapshot: dependencies
forge snapshot --fork-url ${TESTING_FORK_RPC} --diff .gas-snapshot-current