Merge pull request #59 from andrerfneves/feature/coverage-badge

Feature/coverage badge
This commit is contained in:
George Lima 2019-01-30 11:39:47 -02:00 committed by GitHub
commit d0d7f2c4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Reference Wallet for the Zcash Network
[![CircleCI](https://circleci.com/gh/andrerfneves/zec-react-wallet.svg?style=svg&circle-token=abde48de664026a5d03d4b806c904c8ce5e45aa0)](https://circleci.com/gh/andrerfneves/zec-react-wallet)
[![CircleCI](https://circleci.com/gh/andrerfneves/zec-react-wallet.svg?style=svg&circle-token=abde48de664026a5d03d4b806c904c8ce5e45aa0)](https://circleci.com/gh/andrerfneves/zec-react-wallet) ![Flow Coverage](./public/flow-coverage-badge.svg)
## Stack Information

View File

@ -12,6 +12,7 @@
"flow:precommit": "glow",
"flow:coverage": "flow-coverage-report --config ./coverage.json",
"flow:report": "yarn flow:coverage && cd ./flow-coverage && open index.html",
"flow:generate-coverage-badge": "flow-coverage-report -i \"app/**/*.js\" \"config/**/*.js\" \"services/**/*.js\" \"utils/**/*.js\" -t 'badge' -o public/ && git add public/flow-coverage-badge.svg public/flow-badge.svg",
"electron:dev": "electron -r @babel/register .",
"electron:prepare": "yarn icon:build && rm -rf dist && mkdir dist",
"electron:pack": "yarn electron:prepare && electron-builder --dir",
@ -125,6 +126,7 @@
"uuid": "^3.3.2"
},
"pre-commit": [
"flow:generate-coverage-badge",
"lint:precommit",
"flow:precommit"
],

1
public/flow-badge.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="88" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="88" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h34v20H0z"/><path fill="#4C1" d="M34 0h54v20H34z"/><path fill="url(#b)" d="M0 0h88v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,DejaVu Sans,Geneva,sans-serif" font-size="11"><text x="17" y="15" fill="#010101" fill-opacity=".3">flow</text><text x="17" y="14">flow</text><text x="60" y="15" fill="#010101" fill-opacity=".3">passing</text><text x="60" y="14">passing</text></g></svg>

After

Width:  |  Height:  |  Size: 726 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="125" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="a"><rect width="125" height="20" rx="3" fill="#fff"/></mask><g mask="url(#a)"><path fill="#555" d="M0 0h91v20H0z"/><path fill="#4C1" d="M91 0h34v20H91z"/><path fill="url(#b)" d="M0 0h125v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,DejaVu Sans,Geneva,sans-serif" font-size="11"><text x="45.5" y="15" fill="#010101" fill-opacity=".3">flow-coverage</text><text x="45.5" y="14">flow-coverage</text><text x="107" y="15" fill="#010101" fill-opacity=".3">82%</text><text x="107" y="14">82%</text></g></svg>

After

Width:  |  Height:  |  Size: 745 B