16 lines
430 B
Bash
Executable File
16 lines
430 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
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
|
|
|
|
go get github.com/weaveworks/weave/testing/cover
|
|
cover ./coverage/* >profile.cov
|
|
go tool cover -html=profile.cov -o coverage.html
|
|
go tool cover -func=profile.cov -o coverage.txt
|
|
tar czf coverage.tar.gz ./coverage
|