From dd0d28d541c30617df6e9d5de5bc6c499aa5dd77 Mon Sep 17 00:00:00 2001 From: Brian Bland Date: Mon, 21 Dec 2015 10:26:53 -0800 Subject: [PATCH] Adds codecov coverage reporting to circle.yml Signed-off-by: Brian Bland --- circle.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 30337197a..f5dc4d7a2 100644 --- a/circle.yml +++ b/circle.yml @@ -6,6 +6,8 @@ machine: # Install ceph to test rados driver & create pool - sudo -i ~/distribution/contrib/ceph/ci-setup.sh - ceph osd pool create docker-distribution 1 + # Install codecov for coverage + - pip install --user codecov post: # go @@ -45,7 +47,7 @@ dependencies: - > gvm use stable && go get github.com/axw/gocov/gocov github.com/golang/lint/golint - + # Disabling goveralls for now # go get github.com/axw/gocov/gocov github.com/mattn/goveralls github.com/golang/lint/golint @@ -81,13 +83,13 @@ test: - gvm use stable; go list ./... | xargs -L 1 -I{} rm -f $GOPATH/src/{}/coverage.out: pwd: $BASE_STABLE - - gvm use stable; go list -tags "$DOCKER_BUILDTAGS" ./... | xargs -L 1 -I{} godep go test -tags "$DOCKER_BUILDTAGS" -test.short -coverprofile=$GOPATH/src/{}/coverage.out {}: + - gvm use stable; go list -tags "$DOCKER_BUILDTAGS" ./... | xargs -L 1 -I{} godep go test -tags "$DOCKER_BUILDTAGS" -test.short -coverprofile=$GOPATH/src/{}/coverage.out -covermode=count {}: timeout: 600 pwd: $BASE_STABLE post: # Aggregate and report to coveralls - - gvm use stable; go list -tags "$DOCKER_BUILDTAGS" ./... | xargs -L 1 -I{} cat "$GOPATH/src/{}/coverage.out" | grep -v "$CIRCLE_PAIN" >> ~/goverage.report: + - bash <(curl -s https://codecov.io/bash): pwd: $BASE_STABLE ## Notes