Package list golang-github-go-kit-kit / 4219521
Try to fix Circle Peter Bourgon 6 years ago
3 changed file(s) with 24 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 profile.cov
01 cover.out
12 examples/addsvc/addsvc
23 examples/addsvc/client/addcli/addcli
0 #!/bin/bash
1
2 set -e
3
4 echo "mode: count" >| profile.cov
5
6 for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d);
7 do
8 if ls $dir/*.go &> /dev/null; then
9 go test -covermode=count -coverprofile=$dir/profile.tmp $dir
10 if [ -f $dir/profile.tmp ]
11 then
12 cat $dir/profile.tmp | tail -n +2 >> profile.cov
13 rm $dir/profile.tmp
14 fi
15 fi
16 done
17
18 go tool cover -func profile.cov
19
20 goveralls -coverprofile=profile.cov -service=circle-ci -repotoken=$COVERALLS_TOKEN
21
33 - go get github.com/mattn/goveralls
44 - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
55 override:
6 - go test -v -cover -race -coverprofile=/home/ubuntu/coverage.out
7 post:
8 - /home/ubuntu/bin/goveralls -coverprofile=/home/ubuntu/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
6 - bin/coverage-circle.bash
97