Skip gfmrun installation and tests below go1.3

This commit is contained in:
Dan Buch 2016-08-22 15:26:33 -04:00
parent 168c95418e
commit c0cf41eb54
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC
2 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,7 @@ matrix:
os: osx
before_script:
- go get github.com/urfave/gfmrun/...
- go get github.com/urfave/gfmrun/... || true
- go get golang.org/x/tools/... || true
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
npm install markdown-toc ;

View File

@ -57,6 +57,10 @@ def _test():
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'])