Page MenuHomePhorge

D73.1732303205.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D73.1732303205.diff

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

Mime Type
text/plain
Expires
Fri, Nov 22, 11:20 AM (3 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38948
Default Alt Text
D73.1732303205.diff (1 KB)

Event Timeline