mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-30 13:48:54 +08:00
Re-enabling coverage reporting.
This commit is contained in:
parent
8f493dc3f0
commit
ab8e6dd194
@ -4,6 +4,7 @@ go:
|
|||||||
- 1.17.x
|
- 1.17.x
|
||||||
- stable
|
- stable
|
||||||
before_install:
|
before_install:
|
||||||
|
- go get golang.org/x/tools/cmd/cover
|
||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
script:
|
script:
|
||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
@ -11,13 +12,13 @@ script:
|
|||||||
# Temporarily set -mod=mod to allow modification of go.mod and go.sum.
|
# Temporarily set -mod=mod to allow modification of go.mod and go.sum.
|
||||||
# This seems to be caused by a sum missing in the tcell dependency and
|
# This seems to be caused by a sum missing in the tcell dependency and
|
||||||
# should be removed when no longer needed.
|
# should be removed when no longer needed.
|
||||||
- go test -mod=mod ./...
|
- go test -v -covermode=count -coverprofile=coverage.out -mod=mod ./...
|
||||||
- CGO_ENABLED=1 go test -mod=mod -race ./...
|
- CGO_ENABLED=1 go test -mod=mod -race ./...
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
- diff -u <(echo -n) <(gofmt -d -s .)
|
- diff -u <(echo -n) <(gofmt -d -s .)
|
||||||
- diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .)
|
- diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .)
|
||||||
- diff -u <(echo -n) <(golint ./...)
|
- diff -u <(echo -n) <(golint ./...)
|
||||||
- $GOPATH/bin/goveralls -service=travis-pro
|
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user