Skip to content

Commit ab8e6dd

Browse files
committed
Re-enabling coverage reporting.
1 parent 8f493dc commit ab8e6dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ go:
44
- 1.17.x
55
- stable
66
before_install:
7+
- go get golang.org/x/tools/cmd/cover
78
- go get github.com/mattn/goveralls
89
script:
910
- go get -t ./...
1011
- go get -u golang.org/x/lint/golint
1112
# Temporarily set -mod=mod to allow modification of go.mod and go.sum.
1213
# This seems to be caused by a sum missing in the tcell dependency and
1314
# should be removed when no longer needed.
14-
- go test -mod=mod ./...
15+
- go test -v -covermode=count -coverprofile=coverage.out -mod=mod ./...
1516
- CGO_ENABLED=1 go test -mod=mod -race ./...
1617
- go vet ./...
1718
- diff -u <(echo -n) <(gofmt -d -s .)
1819
- diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .)
1920
- diff -u <(echo -n) <(golint ./...)
20-
- $GOPATH/bin/goveralls -service=travis-pro
21+
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
2122
env:
2223
global:
2324
- CGO_ENABLED=0

0 commit comments

Comments
 (0)