Codebase list golang-github-go-kit-kit / f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.6.0 coveralls.bash
f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.6.0

Tree @f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.6.0 (Download .tar.gz)

coveralls.bash @f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.6.0

b6c20f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#!/usr/bin/env bash

if ! type -P gover
then
	echo gover missing: go get github.com/modocache/gover
	exit 1
fi

if ! type -P goveralls
then
	echo goveralls missing: go get github.com/mattn/goveralls
	exit 1
fi

if [[ "$COVERALLS_TOKEN" == "" ]]
then
	echo COVERALLS_TOKEN not set
	exit 1
fi

go list ./... | grep -v '/examples/' | cut -d'/' -f 4- | while read d
do
	cd $d
	go test -covermode count -coverprofile coverage.coverprofile
	cd -
done

gover
goveralls -coverprofile gover.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
find . -name '*.coverprofile' -delete