Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 844 Bytes

README.md

File metadata and controls

35 lines (30 loc) · 844 Bytes

fmtpolice

gofmt and golint checking script to be used as part of Go tests

Example fmtpolice usage:

---
# .travis.yml
language: go
install:
- go get -t ./...
- curl -sLOf https://raw.githubusercontent.com/rafecolton/fmtpolice/master/fmtpolice
script:
- go test ./...
- bash fmtpolice

Example coverage usage with goveralls:

---
# .travis.yml
language: go
install:
- go get -t ./...
- curl -sLOf https://raw.githubusercontent.com/rafecolton/fmtpolice/master/coverage
- go get -u code.google.com/p/go.tools/cmd/cover || go get -u golang.org/x/tools/cmd/cover
- go get -u github.com/axw/gocov/gocov github.com/mattn/goveralls
script:
- go test ./...
- bash coverage
- ${GOPATH%%:*}/bin/goveralls -coverprofile=gover.coverprofile -repotoken <your-repo-token>