-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from mackerelio/go-mod
support Go Modules
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
.PHONY: test | ||
test: lint gofmt | ||
go test -v ./... | ||
|
||
.PHONY: testdeps | ||
testdeps: | ||
go get -d -v -t ./... | ||
GO111MODULE=off \ | ||
go get golang.org/x/lint/golint \ | ||
golang.org/x/tools/cmd/cover \ | ||
github.com/axw/gocov/gocov \ | ||
github.com/mattn/goveralls | ||
|
||
LINT_RET = .golint.txt | ||
.PHONY: lint | ||
lint: testdeps | ||
go vet . | ||
rm -f $(LINT_RET) | ||
golint ./... | tee $(LINT_RET) | ||
test ! -s $(LINT_RET) | ||
|
||
GOFMT_RET = .gofmt.txt | ||
.PHONY: gofmt | ||
gofmt: testdeps | ||
rm -f $(GOFMT_RET) | ||
gofmt -s -d *.go | tee $(GOFMT_RET) | ||
test ! -s $(GOFMT_RET) | ||
|
||
.PHONY: cover | ||
cover: testdeps | ||
goveralls | ||
|
||
.PHONY: test testdeps lint gofmt cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/mackerelio/mackerel-client-go | ||
|
||
go 1.12 | ||
|
||
require github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4= | ||
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= |