Skip to content

Commit

Permalink
vendoring using godeps tool
Browse files Browse the repository at this point in the history
  • Loading branch information
zabawaba99 committed Feb 6, 2016
1 parent 00432e0 commit b3f812c
Show file tree
Hide file tree
Showing 237 changed files with 112,926 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ before_install:
- go get github.com/mattn/goveralls

# get our dependencies
- go get -t ./...
- go get github.com/tools/godep

install:
# make sure stuff actually builds
- go build
- godep go build

script:
# ensure everything is formatted all pretty like
- gofmt -l -s .
- if gofmt -l -s . | grep -v "Godeps"; then exit 1; fi
# vet out possible issues
- go vet ./...
# run tests
- go test ./... -v -race
- godep go test ./... -v -race

after_success:
- |
echo "mode: count" > profile.cov
for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d);
do
if ls $dir/*.go &> /dev/null; then
go test -short -covermode=count -coverprofile=$dir/profile.tmp $dir
godep go test -short -covermode=count -coverprofile=$dir/profile.tmp $dir
if [ -f $dir/profile.tmp ]
then
cat $dir/profile.tmp | tail -n +2 >> profile.cov
Expand Down Expand Up @@ -64,9 +64,9 @@ before_deploy:
GOOS=${PLATFORM%/*}
GOARCH=${PLATFORM#*/}
if [ "$GOOS" = "windows" ]; then
build_cmd="GOOS=$GOOS GOARCH=$GOARCH go build -o snag -ldflags '-w -s'"
build_cmd="GOOS=$GOOS GOARCH=$GOARCH godep go build -o snag -ldflags '-w -s'"
else
build_cmd="CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH go build -o snag -ldflags '-d -w -s'"
build_cmd="CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH godep go build -o snag -ldflags '-d -w -s'"
fi
if ! eval $build_cmd; then
echo "Failed building snag for $PLATFORM" && return 1
Expand Down
49 changes: 49 additions & 0 deletions Godeps/Godeps.json

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

5 changes: 5 additions & 0 deletions Godeps/Readme

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

2 changes: 2 additions & 0 deletions Godeps/_workspace/.gitignore

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

3 changes: 3 additions & 0 deletions Godeps/_workspace/src/github.com/fatih/color/.travis.yml

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

20 changes: 20 additions & 0 deletions Godeps/_workspace/src/github.com/fatih/color/LICENSE.md

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

151 changes: 151 additions & 0 deletions Godeps/_workspace/src/github.com/fatih/color/README.md

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

0 comments on commit b3f812c

Please sign in to comment.