-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 767 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (29 loc) · 767 Bytes
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
GOBIN := ${GOPATH}/bin
GOCMD := go
GOBUILD := CGO_ENABLED=0 $(GOCMD) build
GOCLEAN := $(GOCMD) clean
PATH := ${GOBIN}:${PATH}
export PATH
BINARY_NAME=./bin/bonvoy
default: deps build
clean:
$(GOCLEAN)
rm -f $(BINARY_NAME)
rm -f $(BINARY_NAME)-linux-amd64
build:
mkdir -p bin
$(GOBUILD) -v -o $(BINARY_NAME) .
deps:
$(GOCMD) mod tidy
$(GOCMD) install go.uber.org/mock/mockgen@latest
$(GOCMD) install github.com/mfridman/tparse@latest
generate: deps
$(GOCMD) generate -v ./...
lint:
$(GOLANGCI_LINT) run
test:
$(GOCMD) test -v -tags=integration $$(go list ./... | grep -v vendor/)
test-unit:
$(GOCMD) test -v -coverprofile=c.out $$(go list ./... | grep -v vendor/)
build-linux:
GOOS=linux GOARCH=amd64 $(GOBUILD) -v -o $(BINARY_NAME)-linux-amd64