More tweaks to how ./runtests toc
runs on Windows
This commit is contained in:
parent
d2596f4c86
commit
8cfdccbf0f
@ -21,9 +21,7 @@ install:
|
|||||||
- git clone . c:\gopath\src\gopkg.in\urfave\cli.v2
|
- git clone . c:\gopath\src\gopkg.in\urfave\cli.v2
|
||||||
- go get github.com/urfave/gfmxr/...
|
- go get github.com/urfave/gfmxr/...
|
||||||
- go get -v -t ./...
|
- go get -v -t ./...
|
||||||
- npm bin
|
- if not exist node_modules\.bin\markdown-toc npm install markdown-toc
|
||||||
- ps: $MarkdownTocExists = Test-Path node_modules\.bin\markdown-toc
|
|
||||||
- ps: if ($MarkdownTocExists -eq $False) { cmd /c npm install markdown-toc }
|
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- python runtests vet
|
- python runtests vet
|
||||||
|
6
runtests
6
runtests
@ -94,8 +94,10 @@ def _migrations():
|
|||||||
|
|
||||||
@_target
|
@_target
|
||||||
def _toc():
|
def _toc():
|
||||||
npm_bindir = check_output(['npm', 'bin']).strip()
|
_run([
|
||||||
_run(['node', os.path.join(npm_bindir, 'markdown-toc'), '-i', 'README.md'])
|
'node', os.path.join('node_modules', '.bin', 'markdown-toc'),
|
||||||
|
'-i', 'README.md'
|
||||||
|
])
|
||||||
_run(['git', 'diff', '--quiet'])
|
_run(['git', 'diff', '--quiet'])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user