mirror of
https://github.com/spf13/cobra
synced 2025-05-06 13:27:26 +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:
|
script:
|
||||||
- PATH=$PATH:$PWD/bin go test -v ./...
|
- PATH=$PATH:$PWD/bin go test -v ./...
|
||||||
- go build
|
- 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
|
- if [ -z $NOVET ]; then
|
||||||
diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
|
diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue