Merge remote-tracking branch 'origin/v1' into merging-from-v1
This commit is contained in:
commit
d3b67339c5
@ -26,7 +26,7 @@ matrix:
|
||||
|
||||
before_script:
|
||||
- $pip_install flake8
|
||||
- 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 ;
|
||||
@ -42,7 +42,7 @@ script:
|
||||
- ./runtests gen
|
||||
- ./runtests vet
|
||||
- ./runtests test
|
||||
- ./runtests gfmxr
|
||||
- ./runtests gfmrun
|
||||
- ./cli-v1-to-v2 --selftest
|
||||
- ./runtests migrations
|
||||
- ./runtests toc
|
||||
|
@ -18,7 +18,7 @@ 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/...
|
||||
- rmdir c:\gopath\src\gopkg.in\urfave\cli.v2 /s /q
|
||||
- rmdir c:\gopath\pkg /s /q
|
||||
- git clone . c:\gopath\src\gopkg.in\urfave\cli.v2
|
||||
@ -28,7 +28,7 @@ install:
|
||||
build_script:
|
||||
- python runtests vet
|
||||
- python runtests test
|
||||
- python runtests gfmxr
|
||||
- python runtests gfmrun
|
||||
- python cli-v1-to-v2 --selftest
|
||||
- python runtests migrations
|
||||
- python runtests toc
|
||||
|
6
runtests
6
runtests
@ -60,8 +60,8 @@ def _test():
|
||||
|
||||
|
||||
@_target
|
||||
def _gfmxr():
|
||||
_run(['gfmxr', '-c', str(_gfmxr_count()), '-s', 'README.md'])
|
||||
def _gfmrun():
|
||||
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
|
||||
|
||||
|
||||
@_target
|
||||
@ -123,7 +123,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…
Reference in New Issue
Block a user