Compare commits
6 Commits
b3165878a5
...
master
Author | SHA1 | Date | |
---|---|---|---|
de63d4a05d | |||
bee4abdf69 | |||
404bf4715b | |||
e436a1c7c7 | |||
89c586e342 | |||
5917afa61f |
@ -14,7 +14,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
|
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 )
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules )
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
@ -29,7 +29,6 @@ include(compdb)
|
|||||||
# provide all source files for the server
|
# provide all source files for the server
|
||||||
set(REPOBADGE_SOURCES
|
set(REPOBADGE_SOURCES
|
||||||
include/repoBadge.hpp
|
include/repoBadge.hpp
|
||||||
src/svg.hpp
|
|
||||||
src/repoBadge.cpp
|
src/repoBadge.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
15
README.md
15
README.md
@ -4,6 +4,21 @@
|
|||||||
|
|
||||||
C++ library and tool for creating code repository badges
|
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
|
## License
|
||||||
|
|
||||||
GPLv3
|
GPLv3
|
||||||
|
19
example-badges/build-pening.svg
Normal file
19
example-badges/build-pening.svg
Normal 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 |
19
example-badges/coverage.svg
Normal file
19
example-badges/coverage.svg
Normal 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 |
Loading…
Reference in New Issue
Block a user