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 5, 2015
1 parent aa221e1 commit fcd4ae7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
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
@@ -0,0 +1,6 @@
#!/bin/bash

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

0 comments on commit fcd4ae7

Please sign in to comment.