From e6d5c163d5634a9d4dd2de67ab3c4e46fd3cd1ad Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 17 Sep 2015 10:23:06 -0500 Subject: [PATCH] Update TravisCI to test against golang 1.5.1. Also, modify the goclean.sh script to quote the test command arguments and update the vet test to exclude recent false positives. --- .travis.yml | 2 +- goclean.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0ab0861c..60e70876 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 29630a12..46cc264d 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.