Skip to content

Commit ba18649

Browse files
committed
Fixed coverage analisys that spans on multiple packages
Signed-off-by: Cristian Maglie <[email protected]>
1 parent 8d7a833 commit ba18649

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: .travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ install:
1010
- go get github.com/jstemmer/go-junit-report
1111
- go get golang.org/x/tools/cmd/cover
1212
- go get github.com/mattn/goveralls
13+
- go get github.com/wadey/gocovmerge
1314

1415
script:
1516
- go build -v arduino.cc/arduino-builder
16-
- go test -v -timeout 30m -covermode=count -coverprofile=coverage.out arduino.cc/...
17+
- export TEST_PACKAGES=`go list arduino.cc/...`
18+
- I=0; for PKG in $TEST_PACKAGES; do go test -v -timeout 30m -covermode=count -coverprofile=coverage.$I.out $PKG; ((I++)); done
19+
- bin/gocovmerge coverage.*.out > coverage.out
1720
- bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
1821

1922
env:

0 commit comments

Comments
 (0)