add a tool in cmd/ to check links in go file. Currently it's only used to check the links in api descriptions (pkg/api/.../types.go).

This commit is contained in:
Chao Xu
2015-07-24 17:11:16 -07:00
parent 44c4f54acf
commit 464385281b
5 changed files with 140 additions and 0 deletions

View File

@@ -97,6 +97,16 @@ else
fi
echo "${reset}"
echo -ne "Checking for links in API descriptions... "
if ! hack/verify-linkcheck.sh > /dev/null; then
echo "${red}ERROR!"
echo "Some links in pkg/api/.*types.go is outdated. They require manual fix."
exit_code=1
else
echo "${green}OK"
fi
echo "${reset}"
echo -ne "Checking for docs that need updating... "
if ! hack/verify-gendocs.sh > /dev/null; then
echo "${red}ERROR!"