This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new 199eb46 Adding caching to the shields.io badges and fixing the
javadoc check for individual badges
199eb46 is described below
commit 199eb466d31a751de981e66384b744977148ada4
Author: Dan Klco <[email protected]>
AuthorDate: Fri Jun 8 11:44:18 2018 -0400
Adding caching to the shields.io badges and fixing the javadoc check for
individual badges
---
gh-badge-script/add-badges.sh | 2 +-
gh-badge-script/generate-aggregator-table.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gh-badge-script/add-badges.sh b/gh-badge-script/add-badges.sh
index 68fc5e4..b7b8aab 100755
--- a/gh-badge-script/add-badges.sh
+++ b/gh-badge-script/add-badges.sh
@@ -64,7 +64,7 @@ function update_badges () {
if [[ ! -z $ARTIFACT_ID ]]; then
JAVADOC_BADGE_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}"
https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)
- if [ $JAVADOC_BADGE_RESPONSE = "200" ]; then
+ if [[ $JAVADOC_BADGE_RESPONSE != "404" ]]; then
echo "Adding Javadoc badge for $ARTIFACT_ID"
LINE="
[](https://www.javadoc.io/doc/org.apache.sling/$ARTIFACT_ID)"
prepend
diff --git a/gh-badge-script/generate-aggregator-table.sh
b/gh-badge-script/generate-aggregator-table.sh
index fd97262..cce663a 100755
--- a/gh-badge-script/generate-aggregator-table.sh
+++ b/gh-badge-script/generate-aggregator-table.sh
@@ -77,7 +77,7 @@ function add_repo () {
echo "No tests found for $REPO_NAME"
else
echo "Adding test badge for $REPO_NAME"
- LINE=" [](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/test_results_analyzer/)"
+ LINE=" [](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/test_results_analyzer/)"
write_data
fi
@@ -86,7 +86,7 @@ function add_repo () {
echo "No coverage reports found for $REPO_NAME"
else
echo "Adding coverage badge for $REPO_NAME"
- LINE=" [](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/)"
+ LINE=" [](https://builds.apache.org/view/S-Z/view/Sling/job/sling-$REPO_NAME-1.8/)"
write_data
fi
--
To stop receiving notification emails like this one, please contact
[email protected].