Skip to content

Commit

Permalink
Merge pull request #45 from ernestio/feature/858
Browse files Browse the repository at this point in the history
[#ERNEST-858] : dep and gometalinter
  • Loading branch information
purehyperbole authored Jan 30, 2018
2 parents a4764d1 + d04233e commit d17c23d
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
monit

vendor/
135 changes: 135 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/dgrijalva/jwt-go"
version = "3.1.0"

[[constraint]]
branch = "master"
name = "github.com/ernestio/ernest-config-client"

[[constraint]]
name = "github.com/nats-io/nats"
version = "1.4.0"

[[constraint]]
branch = "master"
name = "github.com/r3labs/pattern"

[[constraint]]
name = "github.com/r3labs/sse"
version = "1.0.1"

[[constraint]]
name = "github.com/smartystreets/goconvey"
version = "1.6.3"
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,22 @@ install:
go install -v

deps:
go get github.com/r3labs/sse
go get gopkg.in/redis.v3
go get github.com/nats-io/nats
go get github.com/dgrijalva/jwt-go
go get github.com/r3labs/pattern
go get github.com/ernestio/ernest-config-client
go get -u github.com/golang/dep/cmd/dep
dep ensure

dev-deps: deps
go get github.com/smartystreets/goconvey/convey
go get github.com/alecthomas/gometalinter
gometalinter --install

cover:
go test -v ./... --cover
go test -v $(go list ./... | grep -v /vendor/) --cover

test:
go test -v -race ./...
go test --cover -v $(go list ./... | grep -v /vendor/)

build:
go build -v ./...

lint:
gometalinter --config .linter.conf

0 comments on commit d17c23d

Please sign in to comment.