Run fmt diff tool only for Go 1.11.x

This commit is contained in:
Harald Nordgren 2018-10-25 00:28:06 +02:00
parent f28371eea1
commit a6c1d946d5

View file

@ -16,7 +16,9 @@ before_install:
script:
- PATH=$PATH:$PWD/bin go test -v ./...
- go build
- diff -u <(echo -n) <(gofmt -d -s .)
- if [ "$TRAVIS_GO_VERSION" = "1.11.x" ]; then
diff -u <(echo -n) <(gofmt -d -s .);
fi
- if [ -z $NOVET ]; then
diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
fi