forked from jmartin82/mmock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (31 loc) · 694 Bytes
/
Copy pathmakefile
File metadata and controls
44 lines (31 loc) · 694 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
40
41
42
43
44
.PHONY: build doc fmt lint dev test vet bindata
PKG_NAME=mmock
NS = jordimartin
VERSION ?= latest
export GO111MODULE=on
build: bindata \
vet \
test
go build -v -o ./bin/$(PKG_NAME) cmd/mmock/main.go
bindata:
go-bindata -pkg console -o internal/console/bindata.go tmpl/*
doc:
godoc -http=:6060
fmt:
go fmt ./...
# https://github.com/golang/lint
# go get github.com/golang/lint/golint
lint:
golint ./...
test:
go test -v ./...
coverage:
./coverage.sh
# https://godoc.org/golang.org/x/tools/cmd/vet
vet:
go vet -v ./...
release:
goreleaser --rm-dist
docker-push:
docker build --no-cache=true -t $(NS)/$(PKG_NAME):$(VERSION) .
docker push $(NS)/$(PKG_NAME):$(VERSION)