Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
travis: add check for go generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Nov 3, 2015
1 parent 094df4e commit 51dece3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ script:
- go test -a -tags noasm -x -v ./...
- diff <(gofmt -d .) <("")
- if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash .travis/test-coverage.sh; fi
# This is run last since it alters the tree.
- ${TRAVIS_BUILD_DIR}/.travis/check-generate.sh
6 changes: 6 additions & 0 deletions .travis/check-generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

go generate github.com/gonum/matrix
if [ -n "$(git diff)" ]; then
exit 1
fi

0 comments on commit 51dece3

Please sign in to comment.