Skip to content

Commit d3d530e

Browse files
committed
travis: submit coverage to coveralls
1 parent ae5a66d commit d3d530e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ go:
1010
- 1.8
1111
- tip
1212

13+
before_install:
14+
- go get golang.org/x/tools/cmd/cover
15+
- go get github.com/mattn/goveralls
16+
1317
matrix:
1418
include:
1519
- env: DB=MYSQL57
@@ -76,6 +80,7 @@ matrix:
7680
before_script:
7781
- mysql -e 'create database gotest;'
7882
script:
79-
- go test -v
83+
- go test -v -covermode=count -coverprofile=coverage.out
8084
- go vet ./...
8185
- test -z "$(gofmt -d -s . | tee /dev/stderr)"
86+
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci

0 commit comments

Comments
 (0)