Merge pull request #485 from urfave/switch-to-gfmrun

Switch to renamed gfmrun tool
main
Dan Buch 8 years ago committed by GitHub
commit 11c134509d

@ -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

@ -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

@ -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))

Loading…
Cancel
Save