diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2e106a8fe009beb4159d693b4793d0db8945334..a67206fe5fe30b57932a5cc27cb585691c47b3f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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>/" diff --git a/.gitlab/pages/pages-index.html b/.gitlab/pages/pages-index.html new file mode 100644 index 0000000000000000000000000000000000000000..9e756d7754de4ec66024a899318502fc4c63df7a --- /dev/null +++ b/.gitlab/pages/pages-index.html @@ -0,0 +1,28 @@ +<!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