8000 GitHub - rafecolton/fmtpolice: gofmt and golint checking script, code coverage script; to be used as part of Go tests
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

0