diff --git a/badges/docstring_coverage.svg b/badges/docstring_coverage.svg index ede19575876030e5398abf5f389986501bd6db62..ea63cd22bdbb3618e890848828655bb4b6ee7522 100644 --- a/badges/docstring_coverage.svg +++ b/badges/docstring_coverage.svg @@ -8,13 +8,13 @@ </clipPath> <g clip-path="url(#r)"> <rect width="99" height="20" fill="#555"/> - <rect x="99" width="43" height="20" fill="#4c1"/> + <rect x="99" width="43" height="20" fill="#97CA00"/> <rect width="142" height="20" fill="url(#s)"/> </g> <g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="110"> <text x="505" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="890">docstr-coverage</text> <text x="505" y="140" transform="scale(.1)" textLength="890">docstr-coverage</text> - <text x="1195" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">100%</text> - <text x="1195" y="140" transform="scale(.1)">100%</text> + <text x="1195" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)">91%</text> + <text x="1195" y="140" transform="scale(.1)">91%</text> </g> </svg> \ No newline at end of file diff --git a/badges/test_coverage.svg b/badges/test_coverage.svg index ffd257bdee756a677e7928264e27559564414bfa..a4262d340358b7051e60330569727e5a2d1695f9 100644 --- a/badges/test_coverage.svg +++ b/badges/test_coverage.svg @@ -15,7 +15,7 @@ <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text> <text x="31.5" y="14">coverage</text> - <text x="80" y="15" fill="#010101" fill-opacity=".3">71%</text> - <text x="80" y="14">71%</text> + <text x="80" y="15" fill="#010101" fill-opacity=".3">69%</text> + <text x="80" y="14">69%</text> </g> </svg> diff --git a/commands/generate_docs.sh b/commands/generate_docs.sh index 22b832eee3326ede43cd45c5c4dc6a6b18932c05..af952955d5f3b139081f71bb891f94e6b6d82ada 100755 --- a/commands/generate_docs.sh +++ b/commands/generate_docs.sh @@ -1,12 +1,15 @@ #!/bin/bash - # Script to generate the docs + +# NAME_CURRENT_FILE="`realpath \"$0\"`" DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE) DIRNAME_PROJECT_ROOT=$(dirname $DIRNAME_CURRENT_FILE) -DOCS_DIR="$DIRNAME_PROJECT_ROOT/docs/" +# +DOCS_DIR="$DIRNAME_PROJECT_ROOT/docs/" +# # echo "$NAME_CURRENT_FILE" # echo "$DIRNAME_CURRENT_FILE" # echo "$DIRNAME_PROJECT_ROOT" diff --git a/commands/generate_reports.sh b/commands/generate_reports.sh index 627b6867ae3171764a04f4a8aff65494619eada3..5c3e7ef862fde155919fd939ed505a6cce5cf483 100755 --- a/commands/generate_reports.sh +++ b/commands/generate_reports.sh @@ -1,15 +1,20 @@ #!/bin/bash - # Script to generate the docstring coverage + +# NAME_CURRENT_FILE="`realpath \"$0\"`" DIRNAME_CURRENT_FILE=$(dirname $NAME_CURRENT_FILE) -TESTS_DIR="$DIRNAME_CURRENT_FILE/binarycpython/tests" -REPORTS_DIR="$DIRNAME_CURRENT_FILE/reports" -BADGE_DIR="$DIRNAME_CURRENT_FILE/badges" +DIRNAME_PROJECT_ROOT=$(dirname $DIRNAME_CURRENT_FILE) # +TESTS_DIR="$DIRNAME_PROJECT_ROOT/binarycpython/tests" +REPORTS_DIR="$DIRNAME_PROJECT_ROOT/reports" +BADGE_DIR="$DIRNAME_PROJECT_ROOT/badges" + + # echo "$NAME_CURRENT_FILE" # echo "$DIRNAME_CURRENT_FILE" +# echo "$DIRNAME_PROJECT_ROOT" # echo "$TESTS_DIR" # echo "$REPORTS_DIR" # echo "$BADGE_DIR" @@ -39,6 +44,6 @@ cd $TEST_COV_DIR coverage run --source=binarycpython "$TESTS_DIR/main.py" coverage html coverage-badge > "$TEST_COV_DIR/test_coverage.svg" -cd $DIRNAME_CURRENT_FILE +cd $DIRNAME_PROJECT_ROOT cp "$TEST_COV_DIR/test_coverage.svg" "$BADGE_DIR/test_coverage.svg" -echo "Done" \ No newline at end of file +echo "Done"