Skip to content

Commit

Permalink
use dep as dependency management tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kbudde committed Dec 1, 2017
1 parent bf0719b commit ce19ede
Show file tree
Hide file tree
Showing 660 changed files with 165 additions and 197,910 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ rabbitmq_exporter.exe
.tarballs/
coverage.out
debug.test
vendor/
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
- PATH=/home/travis/gopath/bin:$PATH
- COMMIT=${TRAVIS_COMMIT::8}
- REPO=kbudde/rabbitmq-exporter
- DEP_VERSION="0.3.2"
before_install:
- go get github.com/mitchellh/gox

Expand All @@ -21,11 +22,16 @@ before_install:
- go get github.com/aktau/github-release
- git checkout -B ${TRAVIS_BRANCH}

# Download the binary to bin folder in $GOPATH
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
- chmod +x $GOPATH/bin/dep

install:
- go get -t ./...
- dep ensure

script:
- go test -tags integration -v -covermode=count -coverprofile=coverage.out ./
- go test -tags integration -covermode=count -coverprofile=coverage.out ./

after_success:
#Build Docker image
Expand Down
117 changes: 117 additions & 0 deletions Gopkg.lock

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

39 changes: 39 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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]]
branch = "master"
name = "github.com/Sirupsen/logrus"

[[constraint]]
branch = "master"
name = "github.com/kbudde/gobert"

[[constraint]]
name = "github.com/prometheus/client_golang"

[[constraint]]
name = "github.com/streadway/amqp"

[[constraint]]
name = "gopkg.in/ory-am/dockertest.v3"
version = "3.0.6"
21 changes: 0 additions & 21 deletions vendor/github.com/Azure/go-ansiterm/LICENSE

This file was deleted.

12 changes: 0 additions & 12 deletions vendor/github.com/Azure/go-ansiterm/README.md

This file was deleted.

Loading

0 comments on commit ce19ede

Please sign in to comment.