Skip to content

Commit

Permalink
Adding coverage using goveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafe Colton committed Nov 11, 2014
1 parent f4d20e9 commit 5fcfae7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
---
language: go
go:
- 1.2.2
- 1.3.3
- tip
env:
- GOARCH=amd64
- GOARCH=386
matrix:
- GOARCH=amd64
- GOARCH=386
global:
secure: c7vypIwUrULhJEOWAgczDgayp/Z9zwuOmtOT36IrPrkCwNPq/0OmfKQHRqrl79XGYVhLcNlmIkILSFqfxxlFIOeIJ7WX0fRn9lOfJ10wNsJNE7DOPs1fhdTWqaNCoFd4mV9rQ8sQX6/JoLMAL8U69ni8an94uvwGExf0zre8g4M=
install:
- go get -d ./...
- curl -sLO https://raw.githubusercontent.com/rafecolton/fmtpolice/master/fmtpolice && chmod +x fmtpolice
- curl -sLO https://raw.githubusercontent.com/rafecolton/fmtpolice/master/coverage && chmod +x 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 ./...
- curl -sLO https://raw.githubusercontent.com/rafecolton/fmtpolice/master/fmtpolice && chmod +x fmtpolice
- ./fmtpolice
- ./coverage
- ${GOPATH%%:*}/bin/goveralls -coverprofile=gover.coverprofile -repotoken $GOVERALLS_TOKEN

0 comments on commit 5fcfae7

Please sign in to comment.