Codebase list golang-github-jdkato-prose / b09ce68
chore: use Coveralls.io Joseph Kato 7 years ago
2 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11 go:
22 - 1.7
33 - 1.8
4 before_install:
5 - go get github.com/mattn/goveralls
46 install:
57 - make setup
68 - make build
79 script:
810 - make test
11 - bash scripts/cover.sh
0 echo "mode: set" > acc.out
1 for Dir in $(go list ./...);
2 do
3 if [[ ${Dir} != *"/vendor/"* ]]
4 then
5 returnval=`go test -coverprofile=profile.out $Dir`
6 echo ${returnval}
7 if [[ ${returnval} != *FAIL* ]]
8 then
9 if [ -f profile.out ]
10 then
11 cat profile.out | grep -v "mode: set" >> acc.out
12 fi
13 else
14 exit 1
15 fi
16 else
17 exit 1
18 fi
19
20 done
21
22 goveralls -coverprofile=acc.out -service=travis-ci