Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit 718f1729 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] ci: deploy a new generic page gathering "typedoc" and "coverage" reports

parent 95d87cfe
......@@ -52,11 +52,13 @@ pages:
- yarn
- yarn doc
- mkdir -p public
- cp .gitlab/pages/pages-index.html public/index.html
- sed -i "s/{BRANCH}/$CI_COMMIT_REF_NAME/g" public/index.html
- mv typedoc public/
- echo "$CI_JOB_ID"
- curl "https://git.duniter.org/nodes/typescript/duniter/-/jobs/$CI_JOB_ID/artifacts/raw/coverage.tar.gz"
- tar xzf coverage.tar.gz
- mv coverage "public/coverage-$CI_COMMIT_REF_NAME"
- mv coverage "public/coverage"
- ls public
artifacts:
untracked: true
......@@ -64,7 +66,8 @@ pages:
- public
only:
- loki
- dev
- pages
test:
<<: *nvm_env
......@@ -78,7 +81,7 @@ test:
# Clean the dump directory before testing
- rm -rf /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 display in GitLab
- tar cvzf coverage.tar.gz coverage/
- sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/"
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CI pages</title>
<style>
html, body {
font-family: "Courier New", Consolas, monospace;
}
li {
line-height: 25px;
}
</style>
</head>
<body>
<p>
<img src="https://raw.github.com/duniter/duniter/master/images/250%C3%97250.png"/>
</p>
<h1>Continuous Integration (CI) pages:</h1>
<p>
<ul>
<li><a href="https://nodes.duniter.io/typescript/duniter/typedoc/">Typedoc (`{BRANCH}` branch)</a></li>
<li><a href="https://nodes.duniter.io/typescript/duniter/coverage/">Coverage (`{BRANCH}` branch)</a></li>
</ul>
</p>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment