Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit a7bedfe

Browse files
committed
ci: добавил хостинг покрытия на gitlab pages
1 parent 125664c commit a7bedfe

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.gitlab-ci.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ generate_coverage_report:
133133
- /tools/reportgenerator
134134
-reports:$CI_PROJECT_DIR/cobertura/**/coverage.cobertura.xml
135135
-targetdir:coverage
136-
"-reporttypes:Html;Badges"
136+
"-reporttypes:Html;Badges;TextSummary"
137137
coverage: '/Branch coverage: (\d+(?:\.\d+)?%)/'
138138
artifacts:
139139
expire_in: 7 days
@@ -243,3 +243,20 @@ create_github_release:
243243
- |
244244
curl --header "PRIVATE-TOKEN: $CEMENT_CLI_CI_TOKEN" -O $PACKAGE_URL
245245
- gh release create --notes "automatic release" -R https://github.com/skbkontur/cement $VERSION_TAG $OUTPUT_FILE
246+
247+
pages:
248+
stage: release
249+
extends: ['.tags']
250+
image: busybox:1.34
251+
needs:
252+
- 'generate_coverage_report'
253+
rules:
254+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
255+
when: on_success
256+
- when: manual
257+
allow_failure: true
258+
script:
259+
- mv coverage/ public/
260+
artifacts:
261+
paths:
262+
- public

0 commit comments

Comments
 (0)