From 39f8f3dab690b3ee22bede0731374eacdc6e08db Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Fri, 2 Dec 2016 15:16:56 +0000 Subject: [PATCH 1/3] travis: Enable go1.8beta1 builds This commit enables go1.8 beta 1 builds. Signed-off-by: Mark Ryan --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 98aadfb79..d330e55df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ services: go: - 1.7 + - go1.8beta1 - tip env: From 77db3c2c0f2ce5d1558cd4209484a31357dfc3d7 Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Fri, 2 Dec 2016 15:20:18 +0000 Subject: [PATCH 2/3] ciao-down: Remove erroneous call to misspell There was a call to misspell in the .travis.yml which wasn't actually doing anything. This commit removes it. Signed-off-by: Mark Ryan --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d330e55df..cd53d0584 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,6 @@ script: - sudo ip addr add 198.51.100.1/24 dev testdummy - go get github.com/google/gofuzz github.com/stretchr/testify - go get github.com/golang/lint/golint github.com/client9/misspell/cmd/misspell - - go list ./... | grep -v github.com/01org/ciao/vendor | xargs -t misspell - go list ./... | grep -v github.com/01org/ciao/vendor | xargs -t go vet # - go list ./... | grep -v github.com/01org/ciao/vendor | xargs -tL 1 golint -set_exit_status - if [[ "$TRAVIS_GO_VERSION" != "tip" ]] ; then go list ./... | grep -v github.com/01org/ciao/vendor | xargs -tL 1 golint -set_exit_status ; fi From 7ff017a524b87d469ca57bf7d4d66668ab4fede4 Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Fri, 2 Dec 2016 15:32:19 +0000 Subject: [PATCH 3/3] travis: Run golint on all builds Golint has been disabled on tip for a while for historical reasons. Re-enabling. Signed-off-by: Mark Ryan --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd53d0584..9e6f21f7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,8 +52,7 @@ script: - go get github.com/google/gofuzz github.com/stretchr/testify - go get github.com/golang/lint/golint github.com/client9/misspell/cmd/misspell - go list ./... | grep -v github.com/01org/ciao/vendor | xargs -t go vet -# - go list ./... | grep -v github.com/01org/ciao/vendor | xargs -tL 1 golint -set_exit_status - - if [[ "$TRAVIS_GO_VERSION" != "tip" ]] ; then go list ./... | grep -v github.com/01org/ciao/vendor | xargs -tL 1 golint -set_exit_status ; fi + - go list ./... | grep -v github.com/01org/ciao/vendor | xargs -tL 1 golint -set_exit_status - go list ./... | grep -v github.com/01org/ciao/vendor | xargs go list -f '{{.Dir}}/*.go' | xargs -I % bash -c "misspell -error %" - go list ./... | grep -v github.com/01org/ciao/vendor | xargs go list -f '{{.Dir}}' | xargs gocyclo -over 15 - go list ./... | grep -v github.com/01org/ciao/vendor | xargs go list -f '{{.Dir}}' | xargs -L 1 ineffassign