Browse Source

test: circle artifacts

pull/342/head
Ethan Buchman 8 years ago
parent
commit
6bc3b8dc6d
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      circle.yml
  2. +1
    -1
      test/test_cover.sh

+ 2
- 1
circle.yml 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)"


+ 1
- 1
test/test_cover.sh 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


Loading…
Cancel
Save