test: circle artifacts

This commit is contained in:
Ethan Buchman 2016-12-19 13:55:18 -05:00
parent faf23aa0d4
commit 6bc3b8dc6d
2 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@ dependencies:
test: test:
override: override:
- "cd $REPO && make test_integrations": - "cd $REPO && set -o pipefail && make test_integrations | tee ~/test_integrations.log":
timeout: 1800 timeout: 1800
- "cp ~/test_integrations.log $CIRCLE_ARTIFACTS"
post: post:
- "cd $REPO && bash <(curl -s https://codecov.io/bash)" - "cd $REPO && bash <(curl -s https://codecov.io/bash)"

View File

@ -5,7 +5,7 @@ PKGS=$(go list github.com/tendermint/tendermint/... | grep -v /vendor/)
set -e set -e
echo "mode: atomic" > coverage.txt echo "mode: atomic" > coverage.txt
for pkg in ${PKGS[@]}; do for pkg in ${PKGS[@]}; do
go test -timeout 20m -race -coverprofile=profile.out -covermode=atomic $pkg go test -timeout 30m -race -coverprofile=profile.out -covermode=atomic $pkg
if [ -f profile.out ]; then if [ -f profile.out ]; then
tail -n +2 profile.out >> coverage.txt; tail -n +2 profile.out >> coverage.txt;
rm profile.out rm profile.out