Added badge images for test statuses
This commit is contained in:
parent
8892e2e426
commit
dc2583e525
4 changed files with 6 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
/logs
|
/logs
|
||||||
|
/img/status.svg
|
||||||
|
|
|
@ -46,13 +46,15 @@ prepare_venv
|
||||||
install_repo
|
install_repo
|
||||||
run_tests
|
run_tests
|
||||||
ret=$?
|
ret=$?
|
||||||
|
cleanup
|
||||||
|
|
||||||
if [[ $ret == 0 ]]; then
|
if [[ $ret == 0 ]]; then
|
||||||
echo "Status: PASSED"
|
echo "Status: PASSED"
|
||||||
|
cp ./img/passed.svg ./img/status.svg
|
||||||
else
|
else
|
||||||
echo "Status: FAILED"
|
echo "Status: FAILED"
|
||||||
|
cp ./img/failed.svg ./img/status.svg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cleanup
|
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
||||||
|
|
1
img/failed.svg
Normal file
1
img/failed.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="81" height="20"><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><rect rx="3" width="81" height="20" fill="#555"/><rect rx="3" x="37" width="44" height="20" fill="#e05d44"/><path fill="#e05d44" d="M37 0h4v20h-4z"/><rect rx="3" width="81" height="20" fill="url(#a)"/><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"><text x="19.5" y="15" fill="#010101" fill-opacity=".3">build</text><text x="19.5" y="14">build</text><text x="58" y="15" fill="#010101" fill-opacity=".3">failing</text><text x="58" y="14">failing</text></g></svg>
|
After Width: | Height: | Size: 726 B |
1
img/passed.svg
Normal file
1
img/passed.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="88" height="20" role="img" aria-label="build: passing"><title>build: passing</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="88" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="37" height="20" fill="#555"/><rect x="37" width="51" height="20" fill="#4c1"/><rect width="88" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="195" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="270">build</text><text x="195" y="140" transform="scale(.1)" fill="#fff" textLength="270">build</text><text aria-hidden="true" x="615" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="410">passing</text><text x="615" y="140" transform="scale(.1)" fill="#fff" textLength="410">passing</text></g></svg>
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in a new issue