From fdb43ee04a1cc87f9a120863bdcf6c3f88503d95 Mon Sep 17 00:00:00 2001 From: ET Date: Sat, 6 Jun 2020 11:09:42 -0700 Subject: [PATCH] Copy all coverage.html files into artifacts directory (#56) * Copy all coverage.html files into artifacts directory This allows archiving/inspection of coverage for all of the submodules in opentelemetry-go-contrib. * Fall back to tar with a file list. cpio missing fromm docker image. * fixup! Fall back to tar with a file list. cpio missing fromm docker image. --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 01d36fe2ab0..5b4f77ba0de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,7 +19,8 @@ jobs: name: "Precommit and Coverage Report" command: | make ci - mv coverage.html $TEST_RESULTS/ + find . -name 'coverage.html' > "${TEST_RESULTS}/coverage.lst" + tar -n -cf - -T "${TEST_RESULTS}/coverage.lst" | tar -C "${TEST_RESULTS}" -xvf - - save_cache: key: go-pkg-mod-{{ checksum "go.sum" }}