check for no links in link file and fail if not pull request

This commit is contained in:
Dave Machado
2017-07-21 14:59:33 -04:00
parent ab5d27c575
commit 90e4670ce4
2 changed files with 7 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "link validation failed!"
exit 1
else
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "no links to check on $TRAVIS_BRANCH branch - script failure!"
fi
echo "link validation passed!"
fi
fi