-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (43 loc) · 1.11 KB
/
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
48
49
50
51
52
53
all: build
tools:
which gometalinter || ( go get -u github.com/alecthomas/gometalinter && gometalinter --install )
which glide || go get -u github.com/Masterminds/glide
which goveralls || go get github.com/mattn/goveralls
lint:
gometalinter --concurrency=1 --deadline=300s --vendor --disable-all \
--enable=golint \
--enable=vet \
--enable=vetshadow \
--enable=varcheck \
--enable=errcheck \
--enable=structcheck \
--enable=deadcode \
--enable=ineffassign \
--enable=gotype \
--enable=varcheck \
--enable=interfacer \
--enable=goconst \
--enable=megacheck \
--enable=unparam \
--enable=misspell \
--enable=gas \
--enable=goimports \
--enable=gocyclo \
./...
fmt:
go fmt ./...
deps:
glide install
build:
env CGO_ENABLED=0 go build -i
install:
env CGO_ENABLED=0 go install
clean:
rm -rf dist/
go clean -i
coverall:
goveralls -service=travis-ci -package github.com/bpineau/cloud-floating-ip/pkg/...
test:
go test -i github.com/bpineau/cloud-floating-ip/...
go test -race -cover github.com/bpineau/cloud-floating-ip/...
.PHONY: tools lint fmt install clean coverall test all