mirror of
https://github.com/public-apis/public-apis.git
synced 2025-08-03 08:40:08 +02:00
Integrate link validation into CI
This commit is contained in:
parent
708f4b7fa9
commit
2e9088ecf2
2 changed files with 21 additions and 18 deletions
|
@ -3,7 +3,7 @@ echo "running format validation..."
|
|||
./validate_format.rb ../README.md
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "format validation failed!"
|
||||
exit $?
|
||||
exit 1
|
||||
else
|
||||
echo "format validation passed!"
|
||||
fi
|
||||
|
@ -13,7 +13,7 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then
|
|||
./validate_links.rb ../README.md
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "link validation failed!"
|
||||
exit $?
|
||||
exit 1
|
||||
else
|
||||
echo "link validation passed!"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue