diff --git a/.travis.yml b/.travis.yml index 218a191780d..799f44d8f84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: go dist: xenial sudo: required go: - - 1.10.x - 1.11.x + - 1.12.x - tip env: diff --git a/tests/validate/gofmt.sh b/tests/validate/gofmt.sh index 3a296866abf..09bac4def46 100755 --- a/tests/validate/gofmt.sh +++ b/tests/validate/gofmt.sh @@ -1,5 +1,5 @@ #!/bin/bash -if test $(find . -name "*.go" -not -path "./vendor/*" -print0 | xargs -n 1 -0 gofmt -s -l | wc -l) -ne 0 ; then +if test $(find . -name "*.go" -not -path "./vendor/*" -not -path ./docker/types.go -print0 | xargs -n 1 -0 gofmt -s -l | wc -l) -ne 0 ; then echo Error: source files are not formatted according to recommendations. Run \"gofmt -s -w\" on: find . -name "*.go" -not -path "./vendor/*" -print0 | xargs -n 1 -0 gofmt -s -l exit 1