Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112511
D73.1732326217.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.1732326217.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
@@ -119,6 +121,32 @@
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 .
+ - pycobertura show ./build/coverage.xml --format markdown --source . | python -c 'import sys, json; print(json.dumps("".join(sys.stdin)))' > ./build/coverage-md.json
+ - /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-md.json
+ - 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\": "; cat build/coverage-md.json; echo ", \"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:43 PM (17 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38948
Default Alt Text
D73.1732326217.diff (1 KB)
Attached To
Mode
D73: Visualize coverage report in pipeline
Attached
Detach File
Event Timeline
Log In to Comment