1
mirror of https://github.com/public-apis/public-apis synced 2024-12-01 20:18:16 +01:00

add travis ci comments on bad build

This commit is contained in:
Dave Machado 2017-08-02 23:33:32 -04:00
parent 9eb8e33ebd
commit 950305f61a
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@ before_install:
- rvm install 2.4.0
install:
- gem install httparty ruby-progressbar
- wget wget -O build/build_bot https://raw.githubusercontent.com/davemachado/build-bot/master/build_bot/build_bot.py
before_script:
- cd build
script:

View File

@ -19,18 +19,19 @@ else
fi
echo "running format validation..."
./validate_format.rb $FORMAT_FILE
./validate_format.rb $FORMAT_FILE > format_results.txt
if [[ $? != 0 ]]; then
echo "format validation failed!"
cat format_results.txt | build_bot
exit 1
else
echo "format validation passed!"
fi
echo "running link validation..."
./validate_links.rb $LINK_FILE
if [[ $? != 0 ]]; then
echo "link validation failed!"
echo "link(s) were unavailible during the build. Please verfiy that they are valid." | build_bot
exit 1
else
echo "link validation passed!"