mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
address comments, wait for travis pass
This commit is contained in:
parent
464385281b
commit
70a29c1a3a
@ -19,6 +19,7 @@ script:
|
|||||||
- PATH=$GOPATH/bin:$PATH ./hack/verify-generated-deep-copies.sh
|
- PATH=$GOPATH/bin:$PATH ./hack/verify-generated-deep-copies.sh
|
||||||
- PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-gendocs.sh
|
- PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-gendocs.sh
|
||||||
- PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-swagger-spec.sh
|
- PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-swagger-spec.sh
|
||||||
|
- PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-linkcheck.sh
|
||||||
- godep go test ./cmd/mungedocs
|
- godep go test ./cmd/mungedocs
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -14,6 +14,13 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//This command checks if the hyperlinks in files are valid. It checks the files
|
||||||
|
//with 'fileSuffix' in 'rootDir' for URLs that match 'prefix'. It trims the
|
||||||
|
//'prefix' from the URL, uses what's left as the relative path to repoRoot to
|
||||||
|
//verify if the link is valid. For example:
|
||||||
|
//$ linkcheck --root-dir=${TYPEROOT} --repo-root=${KUBE_ROOT} \
|
||||||
|
// --file-suffix=types.go --prefix=http://releases.k8s.io/HEAD
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -100,7 +100,7 @@ echo "${reset}"
|
|||||||
echo -ne "Checking for links in API descriptions... "
|
echo -ne "Checking for links in API descriptions... "
|
||||||
if ! hack/verify-linkcheck.sh > /dev/null; then
|
if ! hack/verify-linkcheck.sh > /dev/null; then
|
||||||
echo "${red}ERROR!"
|
echo "${red}ERROR!"
|
||||||
echo "Some links in pkg/api/.*types.go is outdated. They require manual fix."
|
echo "Some links in pkg/api/.*types.go are outdated. They require a manual fix."
|
||||||
exit_code=1
|
exit_code=1
|
||||||
else
|
else
|
||||||
echo "${green}OK"
|
echo "${green}OK"
|
||||||
|
Loading…
Reference in New Issue
Block a user