Fix gogenerate travis check

pull/384/merge
Ernesto Jiménez 2017-05-29 13:47:57 +01:00 committed by Ernesto Jiménez
parent e179a18f6c
commit cc189738c0
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,11 @@
#!/bin/bash
go generate
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.[45](\..*)?$ ]]; then
exit 0
fi
go get github.com/ernesto-jimenez/gogen/imports
go generate ./...
if [ -n "$(git diff)" ]; then
echo "Go generate had not been run"
git diff

View File

@ -7,6 +7,7 @@ go:
- 1.5
- 1.6
- 1.7
- 1.8
- tip
script: