Skip to content

Commit 26eadb9

Browse files
committed
Fixed travis script error reporting
Signed-off-by: Cristian Maglie <[email protected]>
1 parent bdf33ac commit 26eadb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ install:
1515
script:
1616
- go build -v arduino.cc/arduino-builder
1717
- 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
18+
- RES=0; I=0; for PKG in $TEST_PACKAGES; do go test -v -timeout 30m -covermode=count -coverprofile=coverage.$I.out $PKG; ((RES=RES+$?)); ((I++)); done; ( exit $RES )
19+
20+
after_success:
1921
- bin/gocovmerge coverage.*.out > coverage.out
2022
- bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
2123

0 commit comments

Comments
 (0)