Skip to content

Commit

Permalink
Travis check go generate has been run
Browse files Browse the repository at this point in the history
  • Loading branch information
ernesto-jimenez committed May 29, 2017
1 parent 3458981 commit e179a18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.gogenerate.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ go:
- tip

script:
- ./.travis.gogenerate.sh
- ./.travis.gofmt.sh
- ./.travis.govet.sh
- go test -v ./...

0 comments on commit e179a18

Please sign in to comment.