2021-12-20 12:19:02 +00:00
|
|
|
language: go
|
|
|
|
dist: xenial
|
|
|
|
|
2022-11-07 20:03:12 +00:00
|
|
|
go:
|
|
|
|
- 1.17.x
|
|
|
|
- 1.18.x
|
|
|
|
- 1.19.x
|
2021-12-20 12:19:02 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- GO111MODULE=off go get -u github.com/haya14busa/goverage
|
|
|
|
|
|
|
|
install:
|
|
|
|
- go build ./...
|
|
|
|
|
|
|
|
script:
|
|
|
|
- $GOPATH/bin/goverage -v -race -coverprofile=cover.out $(go list ./... | grep -v '/vendor|/scripts')
|
|
|
|
- go tool cover -func=cover.out
|
|
|
|
- go tool cover -html=cover.out -o=cover.html
|
|
|
|
|
|
|
|
# FIXME: these scripts don't exist in this repo
|
|
|
|
# after_success:
|
|
|
|
# - ./scripts/calculateCoverage.sh
|
|
|
|
# - ./scripts/publishCoverage.sh
|