Browse Source

Merge pull request #1672 from tendermint/xla/store-ci-test-logs

Store CI test logs
pull/1675/head
Alexander Simmerl 7 years ago
committed by GitHub
parent
commit
0e3dc32b3d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      .circleci/config.yml

+ 4
- 1
.circleci/config.yml View File

@ -133,18 +133,21 @@ jobs:
key: v1-pkg-cache key: v1-pkg-cache
- restore_cache: - restore_cache:
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }} key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
- run: mkdir -p /tmp/logs
- run: - run:
name: Run tests name: Run tests
command: | command: |
for pkg in $(go list github.com/tendermint/tendermint/... | grep -v /vendor/ | circleci tests split --split-by=timings); do for pkg in $(go list github.com/tendermint/tendermint/... | grep -v /vendor/ | circleci tests split --split-by=timings); do
id=$(basename "$pkg") id=$(basename "$pkg")
GOCACHE=off go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg"
GOCACHE=off go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
done done
- persist_to_workspace: - persist_to_workspace:
root: /tmp/workspace root: /tmp/workspace
paths: paths:
- "profiles/*" - "profiles/*"
- store_artifacts:
path: /tmp/logs
test_persistence: test_persistence:
<<: *defaults <<: *defaults


Loading…
Cancel
Save