Skip to content
Snippets Groups Projects
Commit 03555a41 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] ci: publish coverage

parent e3c1832f
No related branches found
No related tags found
No related merge requests found
...@@ -55,12 +55,15 @@ build: ...@@ -55,12 +55,15 @@ build:
pages: pages:
<<: *nvm_env <<: *nvm_env
stage: pages stage: pages
cache:
paths:
- coverage/
script: script:
- yarn - yarn
- yarn doc - yarn doc
- mkdir -p public - mkdir -p public
- mv typedoc public/ - mv typedoc public/
- mv /tmp/coverage public/ - mv coverage public/
- ls public - ls public
artifacts: artifacts:
untracked: true untracked: true
...@@ -77,14 +80,14 @@ test: ...@@ -77,14 +80,14 @@ test:
untracked: true untracked: true
paths: paths:
- node_modules/ - node_modules/
- coverage/
script: script:
- yarn test - yarn test
# Clean the dump directory before testing # Clean the dump directory before testing
- rm -rf /tmp/duniter_ci_dump/ - rm -rf /tmp/duniter_ci_dump/
- mkdir -p /tmp/duniter_ci_dump/ - mkdir -p /tmp/duniter_ci_dump/
- bash .gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/ - bash .gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/
# Code coverage # Code coverage display in GitLab
- cp -R coverage /tmp/coverage
- sed -n 23p coverage/index.html - sed -n 23p coverage/index.html
.build_releases: &build_releases .build_releases: &build_releases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment