Browse Source

Warn on awesomebot fails

nrew225 8 years ago
parent
commit
08ef1288a8
2 changed files with 2 additions and 2 deletions
  1. 0 1
      .travis.yml
  2. 2 1
      Dangerfile

+ 0 - 1
.travis.yml

@@ -13,7 +13,6 @@ before_script:
 script:
   - git diff master.. -U0 README.md | grep -Pos "(?<=^\+).*" >> temp.md || (exit 0)
   - node test.js temp.md
-  - awesome_bot temp.md --allow-redirect --allow-ssl
   - danger --verbose
 
 notifications:

+ 2 - 1
Dangerfile

@@ -26,11 +26,12 @@ end
 
 # Check syntax
 if has_readme_changes
+ awesome_bot temp.md --allow-redirect --allow-ssl
  require 'json'
  syntaxresults = File.read 'syntaxcheck.json'
  sj = JSON.parse syntaxresults
  if sj['error']==true
-  fail sj['title']
+  warn sj['title']
   markdown sj['message']
  end
 end