generate code coverage reports with codecov

This commit is contained in:
Marten Seemann
2016-06-06 23:52:33 +07:00
parent 3963e7eb03
commit fb583fea1b

View File

@@ -19,5 +19,17 @@ env:
# second part of the GOARCH workaround
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
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
- 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