forked from b-b3rn4rd/awscli-console-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (19 loc) · 743 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GOLANGCI_VERSION = 1.24.0
ci: lint test
.PHONY: ci
bin/golangci-lint: bin/golangci-lint-${GOLANGCI_VERSION}
@ln -sf golangci-lint-${GOLANGCI_VERSION} bin/golangci-lint
bin/golangci-lint-${GOLANGCI_VERSION}:
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint bash -s -- v${GOLANGCI_VERSION}
@mv bin/golangci-lint $@
bin/gcov2lcov:
@env GOBIN=$$PWD/bin GO111MODULE=on go install github.com/jandelgado/gcov2lcov
lint: bin/golangci-lint
@echo "--- lint all the things"
@bin/golangci-lint run
.PHONY: lint
test: bin/gcov2lcov
@echo "--- test all the things"
@go test -v -covermode=count -coverprofile=coverage.txt .
@bin/gcov2lcov -infile=coverage.txt -outfile=coverage.lcov
.PHONY: test