Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112498
D73.1732324711.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D73.1732324711.diff
View Options
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,8 @@
- prepare
- lint
- build
+ - coverage-vis
+ - coverage-upload
- doc
- pages
- report
@@ -107,6 +109,30 @@
path: build/coverage.xml
rules: *build-rules
+'coverage-report':
+ rules: *build-rules
+ stage: coverage-vis
+ image: 'reg.lily.kazv.moe/infra/phorge-ci-tools/pycobertura:servant'
+ script:
+ - pycobertura show ./build/coverage.xml --format html --output ./build/coverage.html --source .
+ - /tools/cobertura-to-phorge ./build/coverage.xml . > ./build/coverage.json
+ artifacts:
+ name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
+ paths:
+ - build/coverage.html
+ - build/coverage.json
+
+upload-coverage:
+ extends: .report
+ stage: coverage-upload
+ rules:
+ - if: $TARGET_PHID
+ changes: *src-chg
+ when: always
+ - when: never
+ script:
+ - '{ echo "{\"receiver\": \"$TARGET_PHID\", \"type\": \"work\", \"unit\": [{\"name\": \"Test coverage\", \"result\": \"pass\", \"details\": \"$pipelineUrl\", \"format\": \"remarkup\", \"coverage\":"; cat build/coverage.json; echo "}]}"; } | /tools/arcanist/bin/arc call-conduit --conduit-uri https://iron.lily-is.land/ --conduit-token "$CONDUIT_TOKEN" -- harbormaster.sendmessage'
+
'doc:build':
stage: doc
image: reg.lily.kazv.moe/kazv/libkazv-deps/deps:servant
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 5:18 PM (4 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39034
Default Alt Text
D73.1732324711.diff (1 KB)
Attached To
Mode
D73: Visualize coverage report in pipeline
Attached
Detach File
Event Timeline
Log In to Comment