forked from ChainSafe/chainbridge-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.88 KB
/
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
46
.PHONY: help run build install license
all: help
## license: Adds license header to missing files.
license:
@echo " > \033[32mAdding license headers...\033[0m "
GO111MODULE=off go get -u github.com/google/addlicense
addlicense -c "ChainSafe Systems" -f ./scripts/header.txt -y 2021 .
## license-check: Checks for missing license headers
license-check:
@echo " > \033[Checking for license headers...\033[0m "
GO111MODULE=off go get -u github.com/google/addlicense
addlicense -check -c "ChainSafe Systems" -f ./scripts/header.txt -y 2021 .
coverage:
go tool cover -func cover.out | grep total | awk '{print $3}'
test:
./scripts/test.sh
## Install dependency subkey
install-subkey:
curl https://getsubstrate.io -sSf | bash -s -- --fast
cargo install --force --git https://github.com/paritytech/substrate subkey
genmocks:
mockgen -destination=./chains/evm/calls/evmgaspricer/mock/gas-pricer.go -source=./chains/evm/calls/evmgaspricer/gas-pricer.go
mockgen -destination=./relayer/mock/relayer.go -source=./relayer/relayer.go
mockgen -source=chains/evm/calls/calls.go -destination=chains/evm/calls/mock/calls.go
mockgen -source=chains/evm/calls/transactor/transact.go -destination=chains/evm/calls/transactor/mock/transact.go
mockgen -destination=chains/evm/voter/mock/voter.go github.com/ChainSafe/chainbridge-core/chains/evm/voter ChainClient,MessageHandler,BridgeContract
mockgen -destination=./chains/evm/calls/transactor/itx/mock/itx.go -source=./chains/evm/calls/transactor/itx/itx.go
mockgen -destination=./chains/evm/calls/transactor/itx//mock/minimalForwarder.go -source=./chains/evm/calls/transactor/itx/minimalForwarder.go
mockgen -destination=chains/evm/cli/bridge/mock/vote-proposal.go -source=./chains/evm/cli/bridge/vote-proposal.go
e2e-setup:
docker-compose --file=./e2e/evm-evm/docker-compose.e2e.yml up
e2e-test:
./scripts/int_tests.sh
local-setup:
./scripts/local_setup.sh