summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rickb777/plural/build+test.sh
blob: d4a38342065814fa0de72046179cde3bfe01ee0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -e
cd $(dirname $0)
PATH=$HOME/gopath/bin:$GOPATH/bin:$PATH

if ! type -p goveralls; then
  echo go get github.com/mattn/goveralls
  go get github.com/mattn/goveralls
fi

echo date...
go test -v -covermode=count -coverprofile=date.out .
go tool cover -func=date.out
[ -z "$COVERALLS_TOKEN" ] || goveralls -coverprofile=date.out -service=travis-ci -repotoken $COVERALLS_TOKEN