File: build%2Btest.sh

package info (click to toggle)
golang-github-rickb777-plural 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 100 kB
  • sloc: sh: 10; makefile: 2
file content (13 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -e
cd "$(dirname $0)"
PATH=$HOME/go/bin:$PATH

if ! type -p goveralls; then
  echo go install github.com/mattn/goveralls
  go install 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