From fb583fea1b0fde2c8675d083b12c748324d39347 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 6 Jun 2016 23:52:33 +0700 Subject: [PATCH] generate code coverage reports with codecov --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 135f7251e..2e598666f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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