From 435545bd358b5032d8e6e66cf1cab16c6a712a4c Mon Sep 17 00:00:00 2001 From: Roopak Venkatakrishnan Date: Tue, 5 May 2020 07:08:41 -0700 Subject: [PATCH] circleci: better error messages (#652) --- .circleci/config.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0003a1c2a1..2b54ebf692 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,7 +107,7 @@ jobs: - run: name: Vendor github.com/googleapis/gnostic for k8s.io/client-go - # This step checks out k8s.io/client-go and vendors + # This step checks out k8s.io/client-go and vendors # github.com/googleapis/gnostic to fix a breaking change made in # gnostic. See kubernetes/client-go#741 # TODO(knusbaum): remove this once the breaking change is resolved or propagated @@ -115,8 +115,8 @@ jobs: git clone --branch v0.17.3 https://github.com/kubernetes/client-go $GOPATH/src/k8s.io/client-go git clone --branch v0.17.3 https://github.com/kubernetes/apimachinery $GOPATH/src/k8s.io/apimachinery git clone --branch v0.4.0 https://github.com/googleapis/gnostic $GOPATH/src/k8s.io/client-go/vendor/github.com/googleapis/gnostic - - # CircleCI recommends caches be ~500MB. We split the cache into + + # CircleCI recommends caches be ~500MB. We split the cache into # two parts to achieve this. # We specifically do not cache gopkg.in to avoid caching Datadog # We can cache other packages here or wait to move to go modules @@ -206,4 +206,9 @@ jobs: - run: name: Testing command: | - INTEGRATION=1 go test -v -race `go list ./...` + mkdir /tmp/test-results + INTEGRATION=1 gotestsum --junitfile /tmp/test-results/result.xml -- -race `go list ./...` + - store_artifacts: + path: /tmp/test-results + - store_test_results: + path: /tmp/test-results