Skip to content

Commit

Permalink
Merge pull request #1 from Songmu/gomod
Browse files Browse the repository at this point in the history
introduce Go Modules
  • Loading branch information
Songmu committed Apr 21, 2019
2 parents d227c68 + 0b911a9 commit 684fa9e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 12 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: go
go:
- 1.x
- tip
script:
- make lint
Expand Down
38 changes: 28 additions & 10 deletions Makefile
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
prompter
=======

[![Build Status](https://travis-ci.org/Songmu/prompter.png?branch=master)][travis]
[![Coverage Status](https://coveralls.io/repos/Songmu/prompter/badge.png?branch=master)][coveralls]
[![Build Status](https://travis-ci.org/Songmu/prompter.svg?branch=master)][travis]
[![Coverage Status](https://coveralls.io/repos/Songmu/prompter/badge.svg?branch=master)][coveralls]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]

Expand Down
8 changes: 8 additions & 0 deletions go.mod
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
)
7 changes: 7 additions & 0 deletions go.sum
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=

0 comments on commit 684fa9e

Please sign in to comment.