Switch to renamed gfmrun tool

This commit is contained in:
Dan Buch 2016-07-16 09:12:42 -04:00
parent ec402ecec5
commit 2c1fd1510c
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC
3 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@ matrix:
os: osx
before_script:
- go get github.com/urfave/gfmxr/...
- go get github.com/urfave/gfmrun/...
- go get golang.org/x/tools/cmd/goimports
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
npm install markdown-toc ;
@ -32,5 +32,5 @@ script:
- ./runtests gen
- ./runtests vet
- ./runtests test
- ./runtests gfmxr
- ./runtests gfmrun
- ./runtests toc

View File

@ -16,10 +16,10 @@ install:
- set PATH=%GOPATH%\bin;C:\go\bin;%PATH%
- go version
- go env
- go get github.com/urfave/gfmxr/...
- go get github.com/urfave/gfmrun/...
- go get -v -t ./...
build_script:
- python runtests vet
- python runtests test
- python runtests gfmxr
- python runtests gfmrun

View File

@ -18,7 +18,7 @@ def main(sysargs=sys.argv[:]):
targets = {
'vet': _vet,
'test': _test,
'gfmxr': _gfmxr,
'gfmrun': _gfmrun,
'toc': _toc,
'gen': _gen,
}
@ -56,8 +56,8 @@ def _test():
os.remove(combined_name)
def _gfmxr():
_run(['gfmxr', '-c', str(_gfmxr_count()), '-s', 'README.md'])
def _gfmrun():
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
def _vet():
@ -86,7 +86,7 @@ def _run(command):
check_call(command)
def _gfmxr_count():
def _gfmrun_count():
with open('README.md') as infile:
lines = infile.read().splitlines()
return len(filter(_is_go_runnable, lines))