0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

chore: store coverage

This commit is contained in:
Sergio Herrera Guzmán 2018-06-09 18:19:43 +02:00 committed by Sergio Herrera
parent ee62559615
commit 78e5c9d778

View file

@ -22,6 +22,8 @@ aliases:
<<: *node9_executor <<: *node9_executor
- &repo_key - &repo_key
repo-{{ .Branch }}-{{ .Revision }} repo-{{ .Branch }}-{{ .Revision }}
- &coverage_key
coverage-{{ .Branch }}-{{ .Revision }}
- &base_config_key - &base_config_key
base-config-{{ .Branch }}-{{ .Revision }} base-config-{{ .Branch }}-{{ .Revision }}
- &yarn_cache_key - &yarn_cache_key
@ -108,6 +110,10 @@ jobs:
- run: - run:
name: Test with Node 9 name: Test with Node 9
command: yarn run test command: yarn run test
- save_cache:
key: *coverage_key
paths:
- coverage
test_node10: test_node10:
<<: *defaults <<: *defaults
@ -132,9 +138,19 @@ jobs:
<<: *default_executor <<: *default_executor
steps: steps:
- *restore_repo - *restore_repo
- restore_cache:
key: *coverage_key
- run: - run:
name: Publish coverage name: Publish coverage
command: yarn run coverage:publish 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: publish_gh_pages:
<<: *defaults <<: *defaults
@ -189,7 +205,11 @@ workflows:
<<: *ignore_branches <<: *ignore_branches
- coverage: - coverage:
requires: requires:
- prepare - test_node6
- test_node8
- test_node9
- test_node10
- test_e2e
<<: *ignore_branches <<: *ignore_branches
- publish_gh_pages: - publish_gh_pages:
requires: requires:
@ -198,10 +218,10 @@ workflows:
- test_node9 - test_node9
- test_node10 - test_node10
- test_e2e - test_e2e
- coverage
<<: *ignore_branches <<: *ignore_branches
- deploy: - deploy:
requires: requires:
- coverage
- publish_gh_pages - publish_gh_pages
filters: filters:
branches: branches: