forked from ssvlabs/eth2-key-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (28 loc) · 800 Bytes
/
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
ifndef $(GOPATH)
GOPATH=$(shell go env GOPATH)
export GOPATH
endif
UNFORMATTED=$(shell gofmt -s -l .)
#Lint
.PHONY: lint-prepare
lint-prepare:
@echo "Preparing Linter"
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s latest
.PHONY: lint
lint:
./bin/golangci-lint run -v ./...
@echo "Checking for unformatted files"
if [ ! -z "${UNFORMATTED}" ]; then \
echo "The following files are not formatted: \n${UNFORMATTED}"; \
fi
#Test
.PHONY: full-test
full-test:
@echo "Running the full test..."
@go test -tags blst_enabled -timeout 20m ${COV_CMD} -race -p 1 -v ./...
#Gosec
.PHONY: gosec
gosec:
@echo "Running the gosec check"
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.15.0
./bin/gosec ./...