This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Makefile
46 lines (35 loc) · 2.04 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
.PHONY: help run build install license example
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/tests.sh
e2e-test:
./scripts/e2e_tests.sh
example:
docker-compose --file=./example/docker-compose.yml up
## 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/executor/mock/voter.go github.com/ChainSafe/chainbridge-core/chains/evm/executor 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
mockgen -destination=chains/evm/listener/mock/handler.go -source=./chains/evm/listener/event-handler.go
mockgen -destination=chains/evm/listener/mock/listener.go -source=./chains/evm/listener/listener.go