Skip to content

Commit

Permalink
upgrade testing as per #134
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaryan committed May 23, 2017
1 parent 3166ac3 commit bfd5f4b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
language: ruby
rvm: 2.2
before_script: gem install awesome_bot
script: awesome_bot README.md --allow-redirect -w cryptrader,shields.io
# cryptrader has a 5s ddos protection
# shields.io is the badge provider
script: bash test.sh
18 changes: 18 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
fname=README.md
call="awesome_bot $fname --skip-save-results --allow-redirect -w cryptrader,shields.io"
# cryptrader has a 5s ddos protection
# shields.io is the badge provider
out=$($call)
if [[ $out != *"No issues"* ]]; then
echo $out
echo "<<< Failed, retrying.. >>>"
out=$($call)
fi

echo $out
if [[ $out != *"No issues"* ]]; then
exit 1
else
exit 0
fi

0 comments on commit bfd5f4b

Please sign in to comment.