Skip to content

Commit

Permalink
dep added
Browse files Browse the repository at this point in the history
  • Loading branch information
kpacha committed Apr 7, 2018
1 parent e2e846b commit 3d4eb09
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
**/krakend_gin*
**/krakend_dns*
**/krakend_mux*
**/krakend_gorilla*
**/krakend_negroni*
**/krakend_httpcache*
**/krakend_jwt*
vendor
server.rsa.crt
server.rsa.key
*.json
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ go:
- 1.8

script:
- make coveralls
- make prepare coveralls
79 changes: 79 additions & 0 deletions Gopkg.lock

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

42 changes: 42 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/gin-gonic/gin"
version = "1.2.0"

[[constraint]]
name = "github.com/gorilla/mux"
version = "1.6.1"

[[constraint]]
name = "github.com/urfave/negroni"
version = "0.3.0"

[prune]
go-tests = true
unused-packages = true
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
.PHONY: all deps test build benchmark coveralls

DEP_VERSION=0.4.1
OS := $(shell uname | tr '[:upper:]' '[:lower:]')

all: deps test build

prepare:
@echo "Installing dep..."
@curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-${OS}-amd64 -o ${GOPATH}/bin/dep
@chmod a+x ${GOPATH}/bin/dep

deps:
go get -u github.com/gin-gonic/gin
go get -u github.com/gorilla/mux
go get -u github.com/urfave/negroni
@echo "Setting up the vendors folder..."
@dep ensure -v
@go get github.com/devopsfaith/krakend-martian/register
@echo ""
@echo "Resolved dependencies:"
@dep status
@echo ""
@rm -rf vendor/github.com/devopsfaith/krakend-martian/register

test:
go fmt ./...
Expand Down

0 comments on commit 3d4eb09

Please sign in to comment.