Run coverage analysis in separate step, and save results

Remove CircleCI 1.0 implementation which used scp to contact other
lanes.

Note we can't use an env var in store_artifacts clause
This commit is contained in:
Bryan Boreham committed 2018-07-30 10:18:57 +00:00
1 parent e3576e13a7
commit 1a8794e90f
4 files changed
+29 -22

No files matched your search

+1 -6
View File
@@ -3,13 +3,8 @@
set -ex
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -n "$CIRCLECI" ]; then
for i in $(seq 1 $(($CIRCLE_NODE_TOTAL - 1))); do
scp node$i:/home/ubuntu/src/github.com/weaveworks/weave/test/coverage/* ./coverage/ || true
done
fi
# 'cover' tool is from github.com/weaveworks/build-tools/cover
go get github.com/weaveworks/build-tools/cover
cover ./coverage/* >profile.cov
go tool cover -html=profile.cov -o coverage.html
go tool cover -func=profile.cov -o coverage.txt