forked from Fantom-foundation/lachesis-base-sonic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 893 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
33
34
.PHONY : test
test :
go test -shuffle=on ./...
.PHONY : test-race
test-race :
go test -shuffle=on -race -timeout=20m ./...
.PHONY: coverage
coverage:
go test -count=1 -shuffle=on -covermode=atomic -coverpkg=./... -coverprofile=cover.prof ./...
go tool cover -func cover.prof | grep -e "^total:"
.PHONY : clean
clean :
rm -fr ./build/*
.PHONY : lint
lint:
@./build/bin/golangci-lint run --config ./.golangci.yml
.PHONY : lintci-deps
lintci-deps:
rm -f ./build/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.52.2
.PHONY : install-deps
install-deps:
go get github.com/JekaMas/go-mutesting/cmd/[email protected]
.PHONY : mut
mut:
MUTATION_TEST=on go-mutesting --blacklist=".github/mut_blacklist" --config=".github/mut_config.yml" ./... &> .stats.msi
@echo MSI: `jq '.stats.msi' report.json`