forked from quic-go/quic-go
generate code coverage reports with codecov
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -19,5 +19,17 @@ env:
|
|||||||
# second part of the GOARCH workaround
|
# second part of the GOARCH workaround
|
||||||
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
|
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
|
||||||
before_install:
|
before_install:
|
||||||
|
- go get golang.org/x/tools/cmd/cover
|
||||||
|
- go get github.com/onsi/ginkgo/ginkgo
|
||||||
|
- go get github.com/onsi/gomega
|
||||||
- export GOARCH=$TRAVIS_GOARCH
|
- export GOARCH=$TRAVIS_GOARCH
|
||||||
- go env # for debugging
|
- go env # for debugging
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go get -t ./...
|
||||||
|
- ginkgo -cover -r
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- cat quic-go.coverprofile > coverage.txt
|
||||||
|
- cat */*.coverprofile >> coverage.txt
|
||||||
|
- bash <(curl -s https://codecov.io/bash) -f coverage.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user