#!/bin/sh -eux

PATH="${GOPATH%%:*}/bin:$PATH"

: ${BUILDTAGS?'Need BUILDTAGS defined (may be empty)'}

case ${TRAVIS_GO_VERSION#go} in
1.1|1.1.*)
  # No coverage support
  go test -v -tags "$BUILDTAGS" ./...
  ;;
*)
  set +x ; : ${COVERALLS_TOKEN:?Need the coveralls.io token} ; set -x
  go test -v -tags "$BUILDTAGS" -covermode=count -coverprofile=coverage.out ./...
  set +x
  echo 'goveralls -coverprofile=coverage.out -service=travis-ci -repotoken [censored] (failure ignored)'
  goveralls -coverprofile=coverage.out -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
  set -x
  ;;
esac

#!/bin/sh -eux

PATH="${GOPATH%%:*}/bin:$PATH"

: ${BUILDTAGS?'Need BUILDTAGS defined (may be empty)'}

case ${TRAVIS_GO_VERSION#go} in
1.1|1.1.*)
  # No coverage support
  go test -v -tags "$BUILDTAGS" ./...
  ;;
*)
  set +x ; : ${COVERALLS_TOKEN:?Need the coveralls.io token} ; set -x
  go test -v -tags "$BUILDTAGS" -covermode=count -coverprofile=coverage.out ./...
  set +x
  echo 'goveralls -coverprofile=coverage.out -service=travis-ci -repotoken [censored] (any failures ignored)'
  goveralls -coverprofile=coverage.out -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
  set -x
  ;;
esac

Clarify the goveralls message re failures
Clarify the goveralls message re failures

I blinked at the test status, which seemed to be saying that there had
been a failure which had been ignored.  On review, the intent was to
note that any failures would be ignored.  Rephrased slightly in the hope
that the next time I go a year between looks at this output I might
confuse myself less.

[ci skip]
