Compare commits

...

6 Commits

4 changed files with 54 additions and 2 deletions

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
project (buildIt-server VERSION 0.1.0 LANGUAGES CXX)
project (repobadge VERSION 0.1.0 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules )
set(CMAKE_CXX_STANDARD 14)
@ -29,7 +29,6 @@ include(compdb)
# provide all source files for the server
set(REPOBADGE_SOURCES
include/repoBadge.hpp
src/svg.hpp
src/repoBadge.cpp
)

View File

@ -4,6 +4,21 @@
C++ library and tool for creating code repository badges
## Building
- mkdir build
- cd build
- cmake ..
- make all
- make test
### Doxygen Documentation
- mkdir build
- cd build
- cmake ..
- make doc-repobadge
## License
GPLv3

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="109" height="20">
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="2" stop-opacity=".1"/>
</linearGradient>
<rect rx="3" width="47" height="20" fill="#555"/> <!-- Comment -->
<rect rx="3" x="47" width="62" height="20" fill="#dfb317"/>
<path fill="#dfb317" d="M45 0h4v20h-4z"/>
<rect rx="3" width="109" height="20" fill="url(#a)"/>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="23" y="15" fill="#010101" fill-opacity=".3">build</text>
<text x="23" y="14">build</text>
<text x="78" y="15" fill="#010101" fill-opacity=".3">pending</text>
<text x="78" y="14">pending</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 797 B

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="102" height="20">
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="2" stop-opacity=".1"/>
</linearGradient>
<rect rx="3" width="70" height="20" fill="#555"/> <!-- Comment -->
<rect rx="3" x="70" width="32" height="20" fill="#e05d44"/>
<path fill="#e05d44" d="M68 0h4v20h-4z"/>
<rect rx="3" width="102" height="20" fill="url(#a)"/>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="35" y="15" fill="#010101" fill-opacity=".3">coverage</text>
<text x="35" y="14">coverage</text>
<text x="86" y="15" fill="#010101" fill-opacity=".3">10%</text>
<text x="86" y="14">10%</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 795 B