From 927ef57ca7913e650c02993784a2677a58d7cbdc Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Sun, 26 Mar 2017 18:16:12 +0200 Subject: [PATCH] Gah. Of course it doesn't work, since the exit status from test is 1. Replace "&&" with an "if". --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fbcb667..034c4e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ install: script: # a workaround for go test not supporting coverage for multiple packages in a single invocation - |- - [ -n "$COVERALLS_TOKEN" ] && echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -v -covermode=count -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp && $HOME/gopath/bin/goveralls -coverprofile=coverage.merged -service=travis-ci -ignore usb/libusb.go -repotoken "$COVERALLS_TOKEN" + if [ -n "$COVERALLS_TOKEN" ]; then echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -v -covermode=count -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp && $HOME/gopath/bin/goveralls -coverprofile=coverage.merged -service=travis-ci -ignore usb/libusb.go -repotoken "$COVERALLS_TOKEN"; fi