mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Run fmt diff tool only for Go 1.11.x
This commit is contained in:
parent
f28371eea1
commit
a6c1d946d5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue