Add a step to Travis to detect binary files in the git repo
@@ -29,6 +29,7 @@ install:
script:
- make generate
- if git diff --name-only | grep 'generated.*.go'; then echo "Content of generated files changed. Please regenerate and commit them."; false; fi
+ - if diff <(git grep -c '') <(git grep -cI '') | grep -v 'swagger-ui' | grep '^<'; then echo "Binary files are present in git repostory."; false; fi
- make check
- make build
- if [[ $TRAVIS_REPO_SLUG == "kubevirt/kubevirt" ]]; then $HOME/gopath/bin/goveralls -service=travis-ci -package=./pkg/...; else make test; fi
