mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-30 09:26:22 +02:00
Add link validation script using in-house logic
This commit is contained in:
parent
2d3bace616
commit
80e8997d86
3 changed files with 86 additions and 4 deletions
|
@ -1,8 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "running format validation..."
|
||||
./validate.rb ../README.md
|
||||
|
||||
./validate_format.rb ../README.md
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "format validation failed!"
|
||||
exit $?
|
||||
|
@ -12,5 +10,11 @@ fi
|
|||
|
||||
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
echo "running link validation..."
|
||||
awesome_bot ../README.md --allow-ssl --allow 403,302
|
||||
./validate_links.rb ../README.md
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "link validation failed!"
|
||||
exit $?
|
||||
else
|
||||
echo "link validation passed!"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue