mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-06-17 05:21:35 -03:00
Added test for TOC to .travis.yml (#205)
Runs doctoc for README*.md. If in newly doctoc'ed README*.md there are any diffs against ones commited in git HEAD then the test failes. The script are using the latest anchor-markdown-header from repo to avoid the bug with non-ASCII headers.
This commit is contained in:
committed by
Richard Littauer
parent
ea40bf75ca
commit
14ea0820c8
@ -3,6 +3,10 @@ rvm:
|
||||
- 2.2
|
||||
before_script:
|
||||
- gem install awesome_bot
|
||||
- npm install
|
||||
script:
|
||||
- awesome_bot README.md --allow-dupe --allow-redirect
|
||||
- awesome_bot README_*.md --allow-dupe --allow-redirect
|
||||
- node node_modules/doctoc/doctoc.js --github README.md README_*.md
|
||||
- test -z "`git diff -- README.md`"
|
||||
- test -z "`git diff -- README_*.md`"
|
||||
|
Reference in New Issue
Block a user