Skip to content

Commit

Permalink
Added links and titles
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelzon committed Dec 12, 2023
1 parent d439f18 commit 3718517
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
middleware/test-all-coverage
COVPCT=$(cat middleware/coverage/total)
COVCOL=$(utils/coverage-color.sh $COVPCT)
echo "{ \"schemaVersion\": 1, \"label\": \"Middleware coverage\", \"message\": \"$COVPCT%\", \"color\": \"$COVCOL\" }" > middleware/coverage/badge.json
echo "{ \"schemaVersion\": 1, \"label\": \"Middleware coverage\", \"message\": \"$COVPCT%\", \"color\": \"$COVCOL\", \"link\": \"https://d16sboe9lzo4ru.cloudfront.net/middleware_coverage_report/index.html\" }" > middleware/coverage/badge.json
- name: "Upload middleware coverage report"
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
ledger/coverage/gen-coverage
COVPCT=$(cat ledger/coverage/output/total)
COVCOL=$(utils/coverage-color.sh $COVPCT)
echo "{ \"schemaVersion\": 1, \"label\": \"Firmware coverage\", \"message\": \"$COVPCT%\", \"color\": \"$COVCOL\" }" > ledger/coverage/output/badge.json
echo "{ \"schemaVersion\": 1, \"label\": \"Firmware coverage\", \"message\": \"$COVPCT%\", \"color\": \"$COVCOL\", \"link\": \"https://d16sboe9lzo4ru.cloudfront.net/firmware_coverage_report/index.html\" }" > ledger/coverage/output/badge.json
- name: "Upload firmware coverage report"
run: |
Expand Down
2 changes: 1 addition & 1 deletion ledger/coverage/gen-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [[ $1 == "exec" ]]; then
popd > /dev/null

lcov --capture --directory $SRCDIR --list-full-path --output-file $BASEDIR/coverage.info
genhtml $BASEDIR/coverage.info --output $BASEDIR/output -p $SRCDIR
genhtml $BASEDIR/coverage.info --output $BASEDIR/output -p $SRCDIR -t "powHSM firmware"
lcov --summary $BASEDIR/coverage.info | grep lines | sed -e "s/.\+lines.\+: \([[:digit:].]\+\).\+/\1/g" > $BASEDIR/output/total
mv $BASEDIR/coverage.info $BASEDIR/output
else
Expand Down
2 changes: 1 addition & 1 deletion middleware/test-all-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [[ $1 == "exec" ]]; then
rm -rf coverage
coverage erase
coverage run -m unittest discover
coverage html -d coverage
coverage html -d coverage --title="powHSM middleware"
coverage report --format=total > coverage/total
echo "Wrote total to coverage/total"
coverage erase
Expand Down

0 comments on commit 3718517

Please sign in to comment.