From 78e5c9d778c59de6f85eeb30d36854415f9f5d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Herrera=20Guzm=C3=A1n?= Date: Sat, 9 Jun 2018 18:19:43 +0200 Subject: [PATCH] chore: store coverage --- .circleci/config.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c86aaf623..45e5c7b30 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,8 @@ aliases: <<: *node9_executor - &repo_key repo-{{ .Branch }}-{{ .Revision }} + - &coverage_key + coverage-{{ .Branch }}-{{ .Revision }} - &base_config_key base-config-{{ .Branch }}-{{ .Revision }} - &yarn_cache_key @@ -108,6 +110,10 @@ jobs: - run: name: Test with Node 9 command: yarn run test + - save_cache: + key: *coverage_key + paths: + - coverage test_node10: <<: *defaults @@ -132,9 +138,19 @@ jobs: <<: *default_executor steps: - *restore_repo + - restore_cache: + key: *coverage_key - run: name: Publish coverage command: yarn run coverage:publish + - store_artifacts: + path: coverage/clover.xml + prefix: tests + - store_artifacts: + path: coverage + prefix: coverage + - store_test_results: + path: coverage/clover.xml publish_gh_pages: <<: *defaults @@ -189,7 +205,11 @@ workflows: <<: *ignore_branches - coverage: requires: - - prepare + - test_node6 + - test_node8 + - test_node9 + - test_node10 + - test_e2e <<: *ignore_branches - publish_gh_pages: requires: @@ -198,10 +218,10 @@ workflows: - test_node9 - test_node10 - test_e2e - - coverage <<: *ignore_branches - deploy: requires: + - coverage - publish_gh_pages filters: branches: