This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
53 lines (38 loc) · 1.46 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
47
48
49
50
51
export GO111MODULE=on
makeFileDir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
.DEFAULT_GOAL := install
install:
${GO_MOD} go install ./
get-lint:
if [ ! -f ./bin/golangci-lint ]; then \
wget -O - -q https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s latest; \
fi;
lint: get-lint
golangci-lint run ./... --skip-dirs e2e --timeout 5m0s
check:
gosec -exclude-dir=e2e ./...
start: install
$(GOPATH)/bin/sygma-fee-oracle server -c $(makeFileDir)config.yaml -d $(makeFileDir)domain.json -k $(makeFileDir)keyfile.priv -t secp256k1
genmocks:
mockgen -destination=./store/mock/store.go -source=./store/store.go
mockgen -destination=./oracle/mock/oracle.go github.com/ChainSafe/sygma-fee-oracle/oracle GasPriceOracle,ConversionRateOracle
test:
go clean -testcache
./scripts/test.sh
start-ganache:
./scripts/start_ganache.sh false
e2e-test: install
./scripts/prepare_test_data.sh
./scripts/start.sh
./scripts/start_ganache.sh true
./scripts/e2e_testing.sh master
## 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 "Sygma" -f ./scripts/header.txt -y 2022 .
## 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 "Sygma" -f ./scripts/header.txt -y 2022 -skip sh .