Merge remote-tracking branch 'origin/v1' into merging-from-v1

This commit is contained in:
Dan Buch 2016-07-16 12:15:38 -04:00
commit d3b67339c5
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC
3 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ matrix:
before_script: before_script:
- $pip_install flake8 - $pip_install flake8
- 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 ;
@ -42,7 +42,7 @@ script:
- ./runtests gen - ./runtests gen
- ./runtests vet - ./runtests vet
- ./runtests test - ./runtests test
- ./runtests gfmxr - ./runtests gfmrun
- ./cli-v1-to-v2 --selftest - ./cli-v1-to-v2 --selftest
- ./runtests migrations - ./runtests migrations
- ./runtests toc - ./runtests toc

View File

@ -18,7 +18,7 @@ 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/...
- rmdir c:\gopath\src\gopkg.in\urfave\cli.v2 /s /q - rmdir c:\gopath\src\gopkg.in\urfave\cli.v2 /s /q
- rmdir c:\gopath\pkg /s /q - rmdir c:\gopath\pkg /s /q
- git clone . c:\gopath\src\gopkg.in\urfave\cli.v2 - git clone . c:\gopath\src\gopkg.in\urfave\cli.v2
@ -28,7 +28,7 @@ install:
build_script: build_script:
- python runtests vet - python runtests vet
- python runtests test - python runtests test
- python runtests gfmxr - python runtests gfmrun
- python cli-v1-to-v2 --selftest - python cli-v1-to-v2 --selftest
- python runtests migrations - python runtests migrations
- python runtests toc - python runtests toc

View File

@ -60,8 +60,8 @@ def _test():
@_target @_target
def _gfmxr(): def _gfmrun():
_run(['gfmxr', '-c', str(_gfmxr_count()), '-s', 'README.md']) _run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
@_target @_target
@ -123,7 +123,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))