(WIP) Travis: Add coverage check

pull/108/head
JeremyRand 5 years ago
parent 006f537e01
commit 9d386f500b
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

@ -4,7 +4,7 @@
#travis_retry go get github.com/tcnksm/ghr github.com/mitchellh/gox gopkg.in/alecthomas/gometalinter.v2 github.com/miekg/exdns/q github.com/namecoin/dns-prop279
travis_retry go get github.com/tcnksm/ghr github.com/mitchellh/gox gopkg.in/alecthomas/gometalinter.v2
go test -v ./...
go test -v -coverprofile coverage.out ./...
RESULT=$?
echo Done tests with exit code $RESULT
@ -12,6 +12,12 @@ if [ "$RESULT" != "0" ]; then
return $RESULT
fi
# TODO: Maybe fail the build if new uncovered lines are added.
echo "Uncovered lines:"
echo ""
grep -v -e " 1$" coverage.out
echo ""
# Static analysis
gometalinter.v2 --install

Loading…
Cancel
Save