mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -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:
parent
ea40bf75ca
commit
14ea0820c8
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules/
|
||||||
|
package-lock.json
|
@ -3,6 +3,10 @@ rvm:
|
|||||||
- 2.2
|
- 2.2
|
||||||
before_script:
|
before_script:
|
||||||
- gem install awesome_bot
|
- gem install awesome_bot
|
||||||
|
- npm install
|
||||||
script:
|
script:
|
||||||
- awesome_bot README.md --allow-dupe --allow-redirect
|
- awesome_bot README.md --allow-dupe --allow-redirect
|
||||||
- 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`"
|
||||||
|
10
package.json
Normal file
10
package.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"private": true,
|
||||||
|
"name": "git-flight-rules",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Flight rules for git",
|
||||||
|
"devDependencies": {
|
||||||
|
"doctoc": "^1.3.0",
|
||||||
|
"anchor-markdown-header": "thlorenz/anchor-markdown-header#master"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user