Merge pull request #510 from urfave/skip-gfmrun-below-go1.3
Skip gfmrun installation and tests below go1.3
This commit is contained in:
commit
207bb61852
@ -22,7 +22,7 @@ matrix:
|
|||||||
os: osx
|
os: osx
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- go get github.com/urfave/gfmrun/...
|
- go get github.com/urfave/gfmrun/... || true
|
||||||
- go get golang.org/x/tools/... || true
|
- go get golang.org/x/tools/... || true
|
||||||
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
|
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
|
||||||
npm install markdown-toc ;
|
npm install markdown-toc ;
|
||||||
|
4
runtests
4
runtests
@ -57,6 +57,10 @@ def _test():
|
|||||||
|
|
||||||
|
|
||||||
def _gfmrun():
|
def _gfmrun():
|
||||||
|
go_version = check_output('go version'.split()).split()[2]
|
||||||
|
if go_version < 'go1.3':
|
||||||
|
print('runtests: skip on {}'.format(go_version), file=sys.stderr)
|
||||||
|
return
|
||||||
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
|
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user