Update for recent TravisCI changes.
Also, override the struct tag checking which is broken in the latest go vet.
This commit is contained in:
parent
116736ee73
commit
979d67627f
2 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
language: go
|
||||
go:
|
||||
- go1.3
|
||||
- release
|
||||
- 1.3.3
|
||||
- 1.4.1
|
||||
sudo: false
|
||||
before_install:
|
||||
- gotools=golang.org/x/tools
|
||||
- if [ "$TRAVIS_GO_VERSION" = "release" ] || [ "$TRAVIS_GO_VERSION" = "go1.3.3" ]; then gotools=code.google.com/p/go.tools; fi
|
||||
- if [ "$TRAVIS_GO_VERSION" = "go1.3.3" ]; then gotools=code.google.com/p/go.tools; fi
|
||||
install:
|
||||
- go get -d -t -v ./...
|
||||
- go get -v $gotools/cmd/cover
|
||||
|
|
|
@ -13,7 +13,7 @@ set -e
|
|||
test -z $(gofmt -l -w . | tee /dev/stderr)
|
||||
test -z $(goimports -l -w . | tee /dev/stderr)
|
||||
test -z $(golint ./... | grep -v "ALL_CAPS" | grep -v "OP_" | tee /dev/stderr)
|
||||
go vet ./...
|
||||
go tool vet -structtags=false .
|
||||
env GORACE="halt_on_error=1" go test -v -race ./...
|
||||
|
||||
# Run test coverage on each subdirectories and merge the coverage profile.
|
||||
|
|
Loading…
Reference in a new issue