Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
chore: Use dep as dependency management tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 13, 2017
1 parent 1fe5b36 commit 4b6f666
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ debug.test
coverage.out
.idea/
*.swp
vendor/
22 changes: 15 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
language: go

go:
- 1.8
- 1.8.x
- 1.9.x
- master

sudo: false

before_install:
- curl -sI https://github.com/golang/dep/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/dep-linux-amd64"}' | wget --output-document=$GOPATH/bin/dep -i -
- chmod +x $GOPATH/bin/dep

install:
- go get -d -v ./...
- go get github.com/mattn/goveralls
- dep ensure -v
- go get github.com/mattn/goveralls

script:
- GOOS=darwin go build
- GOOS=windows go build
- GOOS=linux go build
- $HOME/gopath/bin/goveralls -service=travis-ci
- PKGS=$(go list ./... | grep -v '/vendor/')
- go test -v -cover $PKGS
- GOOS=darwin go build
- GOOS=windows go build
- GOOS=linux go build
- $HOME/gopath/bin/goveralls -service=travis-ci
15 changes: 15 additions & 0 deletions Gopkg.lock

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

26 changes: 26 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# 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/ogier/pflag"
branch = "master"

0 comments on commit 4b6f666

Please sign in to comment.