-
Notifications
You must be signed in to change notification settings - Fork 14
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 #1 from Songmu/gomod
introduce Go Modules
- Loading branch information
Showing
5 changed files
with
46 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
language: go | ||
go: | ||
- 1.x | ||
- tip | ||
script: | ||
- make lint | ||
|
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,16 +1,34 @@ | ||
test: deps | ||
go test ./... | ||
ifdef update | ||
u=-u | ||
endif | ||
|
||
export GO111MODULE=on | ||
|
||
.PHONY: deps | ||
deps: | ||
go get -d -v -t ./... | ||
go get golang.org/x/lint/golint | ||
go get github.com/mattn/goveralls | ||
go get ${u} -d | ||
go mod tidy | ||
|
||
.PHONY: devel-deps | ||
devel-deps: deps | ||
GO111MODULE=off go get ${u} \ | ||
golang.org/x/lint/golint \ | ||
github.com/mattn/goveralls \ | ||
github.com/Songmu/godzil/cmd/godzil | ||
|
||
.PHONY: test | ||
test: deps | ||
go test | ||
|
||
lint: deps | ||
go vet ./... | ||
golint -set_exit_status ./... | ||
.PHONY: lint | ||
lint: devel-deps | ||
go vet | ||
golint -set_exit_status | ||
|
||
cover: deps | ||
.PHONY: cover | ||
cover: devel-deps | ||
goveralls | ||
|
||
.PHONY: test deps lint cover | ||
.PHONY: devel-deps | ||
release: devel-deps | ||
godzil release |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module github.com/Songmu/prompter | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/mattn/go-isatty v0.0.7 | ||
golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480 | ||
) |
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,7 @@ | ||
github.com/mattn/go-isatty v0.0.7 h1:UvyT9uN+3r7yLEYSlJsbQGdsaB/a0DlgWP3pql6iwOc= | ||
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= | ||
golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480 h1:O5YqonU5IWby+w98jVUG9h7zlCWCcH4RHyPVReBmhzk= | ||
golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= | ||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e h1:nFYrTHrdrAOpShe27kaFHjsqYSEQ0KWqdWLu3xuZJts= | ||
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= |