Travis check go generate has been run

This commit is contained in:
Ernesto Jiménez 2017-05-29 13:14:03 +01:00 committed by Ernesto Jiménez
parent 345898142b
commit e179a18f6c
2 changed files with 9 additions and 0 deletions

8
.travis.gogenerate.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
go generate
if [ -n "$(git diff)" ]; then
echo "Go generate had not been run"
git diff
exit 1
fi

View File

@ -10,6 +10,7 @@ go:
- tip
script:
- ./.travis.gogenerate.sh
- ./.travis.gofmt.sh
- ./.travis.govet.sh
- go test -v ./...