diff --git a/.travis.yml b/.travis.yml index 0ab0861cf..60e708767 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - 1.3.3 - 1.4.2 + - 1.5.1 sudo: false before_install: - gotools=golang.org/x/tools diff --git a/goclean.sh b/goclean.sh index 29630a126..46cc264d1 100755 --- a/goclean.sh +++ b/goclean.sh @@ -10,10 +10,10 @@ set -ex # Automatic checks -test -z $(gofmt -l -w . | tee /dev/stderr) -test -z $(goimports -l -w . | tee /dev/stderr) -test -z $(golint ./... | grep -v "ALL_CAPS\|OP_\|NewFieldVal\|Id\|RpcCommand\|RpcRawCommand\|RpcSend\|Dns" | tee /dev/stderr) -go tool vet -structtags=false . +test -z "$(gofmt -l -w . | tee /dev/stderr)" +test -z "$(goimports -l -w . | tee /dev/stderr)" +test -z "$(golint ./... | grep -v 'ALL_CAPS\|OP_\|NewFieldVal\|Id\|RpcCommand\|RpcRawCommand\|RpcSend\|Dns' | tee /dev/stderr)" +test -z "$(go tool vet . 2>&1 | grep -v 'Example\|newestSha' | tee /dev/stderr)" env GORACE="halt_on_error=1" go test -v -race ./... # Run test coverage on each subdirectories and merge the coverage profile.