Skip to content

gofmt and golint checking script, code coverage script; to be used as part of Go tests

License

Notifications You must be signed in to change notification settings

rafecolton/fmtpolice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

gofmt and golint checking script, code coverage script; to be used as part of Go tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages