"git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "c7d1ea4e87d576804375080b924abfb6cd41a31c"
Commit 950305f6 authored by Dave Machado's avatar Dave Machado
Browse files

add travis ci comments on bad build

parent 9eb8e33e
...@@ -5,6 +5,7 @@ before_install: ...@@ -5,6 +5,7 @@ before_install:
- rvm install 2.4.0 - rvm install 2.4.0
install: install:
- gem install httparty ruby-progressbar - 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: before_script:
- cd build - cd build
script: script:
......
...@@ -19,18 +19,19 @@ else ...@@ -19,18 +19,19 @@ else
fi fi
echo "running format validation..." echo "running format validation..."
./validate_format.rb $FORMAT_FILE ./validate_format.rb $FORMAT_FILE > format_results.txt
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "format validation failed!" echo "format validation failed!"
cat format_results.txt | build_bot
exit 1 exit 1
else else
echo "format validation passed!" echo "format validation passed!"
fi fi
echo "running link validation..." echo "running link validation..."
./validate_links.rb $LINK_FILE ./validate_links.rb $LINK_FILE
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "link validation failed!" echo "link validation failed!"
echo "link(s) were unavailible during the build. Please verfiy that they are valid." | build_bot
exit 1 exit 1
else else
echo "link validation passed!" echo "link validation passed!"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment