Switch to renamed gfmrun tool
This commit is contained in:
parent
ec402ecec5
commit
2c1fd1510c
@ -22,7 +22,7 @@ matrix:
|
|||||||
os: osx
|
os: osx
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- go get github.com/urfave/gfmxr/...
|
- go get github.com/urfave/gfmrun/...
|
||||||
- go get golang.org/x/tools/cmd/goimports
|
- go get golang.org/x/tools/cmd/goimports
|
||||||
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
|
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
|
||||||
npm install markdown-toc ;
|
npm install markdown-toc ;
|
||||||
@ -32,5 +32,5 @@ script:
|
|||||||
- ./runtests gen
|
- ./runtests gen
|
||||||
- ./runtests vet
|
- ./runtests vet
|
||||||
- ./runtests test
|
- ./runtests test
|
||||||
- ./runtests gfmxr
|
- ./runtests gfmrun
|
||||||
- ./runtests toc
|
- ./runtests toc
|
||||||
|
@ -16,10 +16,10 @@ install:
|
|||||||
- set PATH=%GOPATH%\bin;C:\go\bin;%PATH%
|
- set PATH=%GOPATH%\bin;C:\go\bin;%PATH%
|
||||||
- go version
|
- go version
|
||||||
- go env
|
- go env
|
||||||
- go get github.com/urfave/gfmxr/...
|
- go get github.com/urfave/gfmrun/...
|
||||||
- go get -v -t ./...
|
- go get -v -t ./...
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- python runtests vet
|
- python runtests vet
|
||||||
- python runtests test
|
- python runtests test
|
||||||
- python runtests gfmxr
|
- python runtests gfmrun
|
||||||
|
8
runtests
8
runtests
@ -18,7 +18,7 @@ def main(sysargs=sys.argv[:]):
|
|||||||
targets = {
|
targets = {
|
||||||
'vet': _vet,
|
'vet': _vet,
|
||||||
'test': _test,
|
'test': _test,
|
||||||
'gfmxr': _gfmxr,
|
'gfmrun': _gfmrun,
|
||||||
'toc': _toc,
|
'toc': _toc,
|
||||||
'gen': _gen,
|
'gen': _gen,
|
||||||
}
|
}
|
||||||
@ -56,8 +56,8 @@ def _test():
|
|||||||
os.remove(combined_name)
|
os.remove(combined_name)
|
||||||
|
|
||||||
|
|
||||||
def _gfmxr():
|
def _gfmrun():
|
||||||
_run(['gfmxr', '-c', str(_gfmxr_count()), '-s', 'README.md'])
|
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
|
||||||
|
|
||||||
|
|
||||||
def _vet():
|
def _vet():
|
||||||
@ -86,7 +86,7 @@ def _run(command):
|
|||||||
check_call(command)
|
check_call(command)
|
||||||
|
|
||||||
|
|
||||||
def _gfmxr_count():
|
def _gfmrun_count():
|
||||||
with open('README.md') as infile:
|
with open('README.md') as infile:
|
||||||
lines = infile.read().splitlines()
|
lines = infile.read().splitlines()
|
||||||
return len(filter(_is_go_runnable, lines))
|
return len(filter(_is_go_runnable, lines))
|
||||||
|
Loading…
Reference in New Issue
Block a user