From 950305f61af8023d7ebf7cb3e45f5140d266812c Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Wed, 2 Aug 2017 23:33:32 -0400 Subject: [PATCH] add travis ci comments on bad build --- .travis.yml | 1 + build/main.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d24e391..e8195332 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/build/main.sh b/build/main.sh index b7b11493..9a3517ce 100755 --- a/build/main.sh +++ b/build/main.sh @@ -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!"