mirror of
https://github.com/distribution/distribution.git
synced 2025-08-20 07:45:33 +00:00
Merge pull request #1289 from BrianBland/codecov
Adds codecov coverage reporting to circle.yml
This commit is contained in:
commit
c56d49b111
@ -6,6 +6,8 @@ machine:
|
|||||||
# Install ceph to test rados driver & create pool
|
# Install ceph to test rados driver & create pool
|
||||||
- sudo -i ~/distribution/contrib/ceph/ci-setup.sh
|
- sudo -i ~/distribution/contrib/ceph/ci-setup.sh
|
||||||
- ceph osd pool create docker-distribution 1
|
- ceph osd pool create docker-distribution 1
|
||||||
|
# Install codecov for coverage
|
||||||
|
- pip install --user codecov
|
||||||
|
|
||||||
post:
|
post:
|
||||||
# go
|
# go
|
||||||
@ -81,13 +83,13 @@ test:
|
|||||||
- gvm use stable; go list ./... | xargs -L 1 -I{} rm -f $GOPATH/src/{}/coverage.out:
|
- gvm use stable; go list ./... | xargs -L 1 -I{} rm -f $GOPATH/src/{}/coverage.out:
|
||||||
pwd: $BASE_STABLE
|
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
|
timeout: 600
|
||||||
pwd: $BASE_STABLE
|
pwd: $BASE_STABLE
|
||||||
|
|
||||||
post:
|
post:
|
||||||
# Aggregate and report to coveralls
|
# 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
|
pwd: $BASE_STABLE
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
Loading…
Reference in New Issue
Block a user