mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
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.
13 lines
347 B
YAML
13 lines
347 B
YAML
language: ruby
|
|
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`"
|