-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |