Skip to content

Commit

Permalink
travis: add gofmt checking
Browse files Browse the repository at this point in the history
Print a diff and fail the check if any code is not gofmt-ed.

`go test -v ./...` is the [default test script](https://docs.travis-ci.com/user/languages/go#Default-Test-Script),
so that goes first.
  • Loading branch information
laanwj committed Oct 3, 2016
1 parent c735333 commit eec93a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -7,3 +7,8 @@ notifications:
email:
recipients:
- team@onionscan.org

script:
- go test -v ./...
- GOFMT=$(gofmt -d .) && echo "$GOFMT"
- test -z "$GOFMT"

0 comments on commit eec93a0

Please sign in to comment.