Update Travis to use godep

This commit is contained in:
Taylor Gerring 2015-02-16 14:34:50 +01:00
parent 702218008e
commit 68f6ddc5aa

@ -12,8 +12,9 @@ install:
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
- go get gopkg.in/check.v1 - go get gopkg.in/check.v1
- DEPS=$(go list -f '{{.Imports}}' ./... | sed -e 's/\[//g' | sed -e 's/\]//g' | sed -e 's/C //g'); if [ "$DEPS" ]; then go get -d -v $DEPS; fi - go get github.com/tools/godep
before_script: before_script:
- godep restore
- gofmt -l -w . - gofmt -l -w .
- goimports -l -w . - goimports -l -w .
- golint . - golint .