forked from jmartin82/mmock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
47 lines (34 loc) · 770 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
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: build doc fmt lint dev test vet godep install bench bindata
PKG_NAME=mmock
NS = jordimartin
VERSION ?= latest
install:
go get -t -v ./...
build: bindata \
vet \
test
go build -v -o ./bin/$(PKG_NAME)
bindata:
go-bindata -pkg console -o 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
get-deps:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
release:
goreleaser --rm-dist
docker-push:
docker build --no-cache=true -t $(NS)/$(PKG_NAME):$(VERSION) .
docker push $(NS)/$(PKG_NAME):$(VERSION)