Skip to content

Commit

Permalink
Generate code coverage with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Jun 16, 2016
1 parent 4b20de5 commit 35a5e3b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ branches:
before_install:
- wget http://apache.claz.org/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
- tar -zxvf zookeeper*tar.gz
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover

script:
- go build ./...
- go fmt ./...
- go vet ./...
- go test -i -race ./...
- go test -v -race ./...
- go test -race -covermode atomic -coverprofile=profile.cov ./zk
- goveralls -coverprofile=profile.cov -service=travis-ci

env:
global:
secure: Coha3DDcXmsekrHCZlKvRAc+pMBaQU1QS/3++3YCCUXVDBWgVsC1ZIc9df4RLdZ/ncGd86eoRq/S+zyn1XbnqK5+ePqwJoUnJ59BE8ZyHLWI9ajVn3fND1MTduu/ksGsS79+IYbdVI5wgjSgjD3Ktp6Y5uPl+BPosjYBGdNcHS4=

0 comments on commit 35a5e3b

Please sign in to comment.