forked from client9/ipcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 796 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
48
all: generate
generate:
go run ./cmd/ipcat/main.go
aws:
go run ./cmd/ipcat/main.go -aws
azure:
go run ./cmd/ipcat/main.go -azure
appengine:
go run ./cmd/ipcat/main.go -appengine
cloudflare:
go run ./cmd/ipcat/main.go -cloudflare
install:
go get golang.org/x/tools/cmd/goimports
go get github.com/golang/lint/golint
test:
find . -name '*.go' | xargs gofmt -w -s
find . -name '*.go' | xargs goimports -w
go vet ./...
golint ./...
go test .
misspell:
misspell README.md
find . -name '*.go' | misspell
clean:
rm -f *~
git gc
ci: generate test
docker-ci:
docker run --rm \
-e COVERALLS_REPO_TOKEN=$(COVERALLS_REPO_TOKEN) \
-v $(PWD):/go/src/github.com/client9/ipcat \
-w /go/src/github.com/client9/ipcat \
nickg/golang-dev-docker \
make ci
.PHONY: ci docker-ci